User`s guide
SdfCommentRead
Syntax long SdfCommentRead (short fn, short commNo, long offset, long size, char far *buf);
Returns a long integer of greater than or equal to minus one. The return value is the number
of characters of comment actually read; a return of
−1 indicates an error.
This function reads comment data from an open SDF file and puts it in a character array, where buf is the
pointer to the array, and fn is the number of the open SDF file (for details, see SdfOpen).
The commNo parameter selects the comment header from which you want to read. Most instruments
have only one comment header, so you will usually specify 0 (zero), which selects the first comment.
The offset parameter is the number of characters to skip before reading the data. One situation where an
offset is useful is if you are reading data in multiple passes. If you don’t want to use an offset, specify an
offset of zero.
The size parameter is the maximum number of characters you want to read. This function returns the
actual number of characters that you read.
Using SDF Data with C Programs
SdfCommentRead
6-21