Adding upstream version 3.30~pre4.
[syslinux-debian/hramrach.git] / com32 / lib / sys / ftell.c
blob3f109163ed92c16d291200d9cf991f49394b174c
1 /*
2 * sys/ftell.c
4 * We can't seek, but we can at least tell...
5 */
7 #include <stdio.h>
8 #include "sys/file.h"
10 long ftell(FILE *stream)
12 int fd = fileno(stream);
13 struct file_info *fp = &__file_info[fd];
15 return fp->i.offset;