xref: /csrg-svn/lib/libc/gen/telldir.c (revision 11827)
1 /* Copyright (c) 1982 Regents of the University of California */
2 
3 static char sccsid[] = "@(#)telldir.c 4.4 04/02/83";
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 	extern long lseek();
16 
17 	return (lseek(dirp->dd_fd, 0L, 1) - dirp->dd_size + dirp->dd_loc);
18 }
19