Shinobi Library - File System Function

gdFsCheckEof

Detects the end of a file

FORMAT

Sint32 gdFsCheckEof( gdfs, *iseof )
GDFS gdfs
Bool *iseof

PARAMETER

 gdfs  File handle 
 *iseof  Pointer that returns results 

RETURN

GDD_ERR

DESCRIPTION

Checks whether the end of the file has been reached. Results are returned in the argument *iseof.

 0  Not the end of file 
 Other than 0  End of file 


EXAMPLE

GDFS gf;
Bool flag;
Sint32 ret;
gf = gdFsOpen("TEST.BIN", NULL);
/* After read processing */
ret = gdFsCheckEof(gf, &flag);
if (ret == GDD_ERR_OK && flag == TRUE) {
  gdFsClose(gf);
  return;
}

gdFsCheckEof
COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999