mlibc: Implement ftell, fseek.
* lib/libc+tcc.c (ftell, fseek): Implement.
This commit is contained in:
parent
2cda87257a
commit
26e1876d12
|
@ -98,18 +98,16 @@ fread (void *data, size_t size, size_t count, FILE *stream)
|
||||||
return bytes;
|
return bytes;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
|
||||||
fseek (FILE *stream, long offset, int whence)
|
|
||||||
{
|
|
||||||
eputs ("fseek stub\n");
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
long
|
long
|
||||||
ftell (FILE *stream)
|
ftell (FILE *stream)
|
||||||
{
|
{
|
||||||
eputs ("ftell stub\n");
|
return lseek ((int)stream, 0, SEEK_CUR);
|
||||||
return 0;
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
fseek (FILE *stream, long offset, int whence)
|
||||||
|
{
|
||||||
|
return lseek ((int)stream, offset, whence);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
Loading…
Reference in a new issue