home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / ansi / stdio / file.doc < prev    next >
Encoding:
Text File  |  1996-03-22  |  880 b   |  42 lines

  1. meaning of struct FILE* members
  2.  
  3. int   _cnt;
  4.  
  5. W: number of empty slots left in the buffer.
  6. R: number of characters left in the buffer.
  7.  
  8. char *_ptr;
  9.  
  10. pointer inside the buffer we're using.
  11. R: points to next character to read out.
  12. W: points to next cell to put character in.
  13.  
  14. char *_base;
  15.  
  16. pointer to the start of the buffer we're using.
  17.  
  18. int   _bufsiz;
  19.  
  20. size of the buffer
  21.  
  22. int   _flag;
  23.  
  24. _IORW        file is used for both read and write
  25. _IOWRT        file was last used for write
  26. _IOREAD        file was last used for read
  27. _IOMYBUF    buffer needs to be freed
  28. _IOEOF        file is at EOF
  29. _IOERR        error occurred
  30. _IOSTRG        sprintf
  31. _IOAPPEND    append mode
  32. _IORMONCL    remove file on close
  33. _IOUNGETC       buffer contents does not correspond to file
  34.  
  35. int   _file;
  36.  
  37. dos file descriptor
  38.  
  39. char *_name_to_remove;
  40.  
  41. If nonzero, the named file is removed when the file is fclosed.
  42.