Chapter 2 Formatting and I/O Library
© National Instruments Corporation 2-9 LabWindows/CVI Standard Libraries
Return Value
result integer Result of the compare
operation.
Return Codes
-1 Bytes from string#1 less than bytes from string#2.
0 Bytes from string#1 identical to bytes from string#2.
1 Bytes from string#1 greater than bytes from string#2.
Parameter Discussion
If caseSensitive is zero, alphabetic characters are compared without regard to case. If
caseSensitive is non-zero, alphabetic characters are equal only if they have the same case.
The function returns an integer value indicating the lexicographic relationship between the two
strings.
CopyBytes
void CopyBytes (char targetBuffer[], int targetIndex, char *sourceBuffer,
int sourceIndex, int numberofBytes);
Purpose
Copies the numberofBytes bytes starting at position sourceIndex of sourceBuffer to position
targetIndex of targetBuffer.
Parameters
Input targetIndex integer Starting position in
targetBuffer.
sourceBuffer string Source buffer.
sourceIndex integer Starting position in
sourceBuffer.
numberofBytes integer Number of bytes to copy.
Output targetBuffer string Destination buffer.
Return Value
None