User`s guide
SdfCommentHdr
Syntax int SdfCommentHdr (short fn, short commNo, struct
SDF_COMMENT_HDR far *commHdr);
Returns an integer (short) of zero or minus one. A return of 0 indicates no error; a return of
−1indicatesanerror.
This function read the comment-header information from an open SDF file, where fn is the number of the
open SDF file (for details, see SdfOpen). The information is put in the SDF_COMMENT_HDR
structure, where commHdr is the pointer to the structure.
The commNo parameter selects the comment header that you want to examine. Most instruments have
only one comment header, so you will usually specify 0 (zero), which selects the first comment.
The SDF comment header record contains information about a comment associated with this data file. It
contains the type of comment, the length of the comment, the maximum length of the comment, and to
what part of the file the comment applies. The actual comment follows the comment header. Use the
SdfCommentRead function to read the comment, and the SdfCommentWrite function to write to the
comment area.
Using SDF Data with C Programs
SdfCommentHdr
6-20