National Instruments 320682C Musical Toy Instrument User Manual


 
Chapter 2 Formatting and I/O Library
© National Instruments Corporation 2-7 LabWindows/CVI Standard Libraries
CloseFile
int
status
=
CloseFile
(
int
fileHandle);
Purpose
Closes the file associated with
fileHandle
.
fileHandle
is the file handle that was returned from
the OpenFile function and specifies the file to close.
Parameter
Input
fileHandle
integer File handle.
Return Value
status
integer Result of the close file
operation.
Return Codes
-1
Bad file handle.
0
Success.
CompareBytes
int
result
=
CompareBytes
(
char *
buffer
#1
,
int
buffer#1Index,
char *
buffer#2,
int
buffer#2Index,
int
numberofBytes,
int
caseSensitive);
Purpose
Compares the
numberofBytes
starting at position
buffer#1Index
of
buffer#1
to the
numberofBytes
starting at position
buffer#2Index
of
buffer#2
.
Parameters
Input
buffer#1
string String 1.
buffer#1Index
integer
Starting position in
buffer#1.
buffer#2
string String 2.
buffer#2Index
integer
Starting position in
buffer#2.
numberofBytes
integer Number of bytes to compare.
caseSensitive
integer Case sensitivity mode.