VReadGlobalcomFile
Name
VReadGlobalcomFile - reads the GLOBAL.COM file.
Synopsis
VReadGlobalcomFile(global)
GlobalInfo *global; /*RETURN*/
Description
VReadGlobalcomFile reads the GLOBAL.COM file. If the GLOBAL.COM file does
not exist, then VReadGlobalcomFile returns 4, or if a read error occurs
while reading GLOBAL.COM file then VReadGlobalcomFile returns 2. Otherwise
VReadGlobalcomFile reads GLOBAL.COM file, and returns the file information to
GlobalInfo.
Structures
typedef struct {
short num_of_ifiles; /*no. of file selected from INPUT command*/
FileInfo *ifiles; /*array fo files selected from INPUT command*/
} GlobalInfo;
Return Value
0 - work successfully.
1 - memory allocation error.
2 - read error.
4 - GLOBAL.COM file open error.
Parameters
global - returns the GlobalInfo structure which contains an array of input
filenames and the number of filenames selected. The caller should
free this memory after use; first free the min, max, and incr pointers
for each scene file.
Side Effects
None.
Entry Conditions
None.
Related Functions
VWriteGlobalcomFile,
VGetInputFiles.