source:
trunk/minix/lib/other/telldir.c@
20
Last change on this file since 20 was 9, checked in by , 14 years ago | |
---|---|
File size: 303 bytes |
Line | |
---|---|
1 | /* telldir() Author: Kees J. Bot |
2 | * 24 Apr 1989 |
3 | */ |
4 | #define nil 0 |
5 | #include <lib.h> |
6 | #include <sys/types.h> |
7 | #include <dirent.h> |
8 | #include <errno.h> |
9 | |
10 | off_t telldir(DIR *dp) |
11 | /* Return the current read position in a directory. */ |
12 | { |
13 | if (dp == nil) { errno= EBADF; return -1; } |
14 | |
15 | return dp->_pos; |
16 | } |
Note:
See TracBrowser
for help on using the repository browser.