home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / cvs-1.8.7-src.tgz / tar.out / fsf / cvs / contrib / dirfns.shar / telldir.c < prev   
C/C++ Source or Header  |  1996-09-28  |  257b  |  17 lines

  1. static char sccsid[] = "@(#)telldir.c 4.1 2/21/82";
  2.  
  3. #include <sys/types.h>
  4. #include <dir.h>
  5.  
  6. /*
  7.  * return a pointer into a directory
  8.  */
  9. long
  10. telldir(dirp)
  11.     DIR *dirp;
  12. {
  13.     long lseek();
  14.  
  15.     return (lseek(dirp->dd_fd, 0L, 1) - dirp->dd_size + dirp->dd_loc);
  16. }
  17.