1 /* Copyright (c) 1982 Regents of the University of California */ 2 3 static char sccsid[] = "@(#)telldir.c 4.3 05/07/82"; 4 5 #include <sys/param.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 } 17