Formatting and I/O Library Chapter 2
LabWindows/CVI Standard Libraries 2-28 © National Instruments Corporation
result = WriteFile(handle, "Hello, World!", 13);
if (result == -1)
FmtOut("error writing to file");
}
else
FmtOut("error positioning file pointer");
CloseFile(handle);
StringLengthint n = StringLength (char *string);
Purpose
Returns the number of bytes in the string before the first ASCII NUL.
Parameter
Input string String.
Return Value
ninteger Number of bytes in string
before ASCII NUL.
Example
char s[100];
int nbytes;
nbytes = StringLength (s);
StringLowerCasevoid StringLowerCase (char string[]);
Purpose
Converts all uppercase alphabetic characters in the NUL-terminated string to lowercase.
Parameter
Input/Output string String.