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

Defined functions

Defined variables

sccsid defined in line 3; never used
Last modified: 1983-01-06
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 570
Valid CSS Valid XHTML 1.0 Strict