Chapter 2 Formatting and I/O Library
© National Instruments Corporation 2-13 LabWindows/CVI Standard Libraries
FillBytes
void FillBytes (char buffer[], int startingIndex, int numberofBytes, int value);
Purpose
Sets the numberofBytes bytes starting at position startingIndex of buffer to the value in the
lower byte of value. startingIndex is zero-based.
Parameters
Input buffer string Destination buffer.
startingIndex integer Starting position in buffer.
numberofBytes integer Number of bytes to fill.
value integer Value to place in bytes.
Return Value
None
FindPattern
int ndx = FindPattern (char *buffer, int startingIndex, int numberofBytes,
char *pattern, int caseSensitive, int startFromRight);
Purpose
Searches a character buffer for a pattern of bytes. The pattern of bytes is specified by the string
pattern.
Parameters
Input buffer string Buffer to be searched.
startingIndex integer Starting position in buffer.
numberofBytes integer Number of bytes to search.
pattern string Pattern to search for.
caseSensitive integer Case-sensitivity mode.
startFromRight integer Direction of search.