home *** CD-ROM | disk | FTP | other *** search
/ Super PC 34 / Super PC 34 (Shareware).iso / spc / UTIL / DJGPP2 / V2 / DJLSR200.ZIP / src / libc / ansi / stdio / file.doc < prev    next >
Encoding:
Text File  |  1995-11-25  |  819 b   |  41 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.  
  34. int   _file;
  35.  
  36. dos file descriptor
  37.  
  38. char *_name_to_remove;
  39.  
  40. If nonzero, the named file is removed when the file is fclosed.
  41.