This repository has been archived on 2023-08-20. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
RescueBootCD/extra/syslinux-3.09/com32/lib/sys/ftell.c

19 lines
243 B
C

/*
* sys/ftell.c
*
* We can't seek, but we can at least tell...
*/
#include <stdio.h>
#include "sys/file.h"
long ftell(FILE *stream)
{
int fd = fileno(stream);
struct file_info *fp = &__file_info[fd];
return fp->i.offset;
}