home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / posix / dirent / telldir.txh < prev   
Encoding:
Text File  |  1995-07-10  |  507 b   |  29 lines

  1. @node telldir, file system
  2. @subheading Syntax
  3.  
  4. @example
  5. #include <dirent.h>
  6.  
  7. long telldir(DIR *dir);
  8. @end example
  9.  
  10. @subheading Description
  11.  
  12. This function returns a value which indicates the position of the
  13. pointer in the given directory.  This value is only useful as an
  14. argument to @code{seekdir} (@pxref{seekdir}). 
  15.  
  16. @subheading Return Value
  17.  
  18. The directory pointer.
  19.  
  20. @subheading Example
  21.  
  22. @example
  23. DIR *dir;
  24. long q = telldir(dir);
  25. do_something();
  26. seekdir(dir, q);
  27. @end example
  28.  
  29.