blob: a7a33773ae3d36506d23dabd2fb189b36c36e31a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include <stdio.h>
#include <unistd.h>
int fseek(FILE *stream, long off, int whence)
{
int fd;
fd = (uintptr_t)stream;
return seek(fd, off, whence);
}
long ftell(FILE *stream)
{
int fd;
fd = (uintptr_t)stream;
return seek(fd, 0, SEEK_CUR);
}
|