source:
bootcd/isolinux/syslinux-6.03/com32/lib/sys/ftell.c
Last change on this file was e16e8f2, checked in by , 3 years ago | |
---|---|
|
|
File size: 244 bytes |
Rev | Line | |
---|---|---|
[e16e8f2] | 1 | /* |
2 | * sys/ftell.c | |
3 | * | |
4 | * We can't seek, but we can at least tell... | |
5 | */ | |
6 | ||
7 | #include <stdio.h> | |
8 | #include "sys/file.h" | |
9 | ||
10 | long ftell(FILE * stream) | |
11 | { | |
12 | int fd = fileno(stream); | |
13 | struct file_info *fp = &__file_info[fd]; | |
14 | ||
15 | return fp->i.offset; | |
16 | } |
Note: See TracBrowser
for help on using the repository browser.