1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:07:35 +00:00

LibC: implement fgetpos and fsetpos

They're just "front ends" for ftell and fseek, but they do their
job.

Fixes #913
This commit is contained in:
Paweł Cholewa 2019-12-27 22:50:14 +01:00 committed by Andreas Kling
parent 2cbc3c6ee5
commit b5c3bc6a71
2 changed files with 21 additions and 1 deletions

View file

@ -45,7 +45,7 @@ extern FILE* stdin;
extern FILE* stdout;
extern FILE* stderr;
typedef size_t fpos_t;
typedef long fpos_t;
int fseek(FILE*, long offset, int whence);
int fgetpos(FILE*, fpos_t*);