VGetHeaderLength
Name
VGetHeaderLength - computes the header length of 3DVIEWNIX data file.
Synopsis
VGetHeaderLength(fp,hdrlen)
FILE *fp;
int *hdrlen; /*RETURN*/
Description
VGetHeaderLength computes the header length of the 3DVIEWNIX data
file. If the file header format is incorrect, VGetHeaderLength returns
an error code else VGetHeaderLength returns the length of the header to
hdrlen.
Return Value
0 - work successfully.
2 - read error.
5 - improper seeks.
Parameters
fp - a pointer to the output data file.
hdrlen - length of the header.
Side Effects
None.
Entry Conditions
If fp is NULL, VGetHeaderLength prints an error message to the
standard error stream, produces a core dump file, and exits from the current
process.
Related Functions
VReadHeader,
VWriteHeader,
VWriteData,
VReadData.