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

Defined functions

telldir defined in line 13; used 1 times
Last modified: 1983-07-18
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 632
Valid CSS Valid XHTML 1.0 Strict