diff options
author | dzwdz | 2022-08-05 19:54:22 +0200 |
---|---|---|
committer | dzwdz | 2022-08-05 19:54:22 +0200 |
commit | 4fcff0ecc6f94dbc079f29b9636d810a16ef2ed7 (patch) | |
tree | 1ae354131b7bffd2b3f7a671f78cd31371b261c8 /src/user/lib/include/stdio.h | |
parent | 99e15199ef24d4f262683b47a529f1b239c4dcd9 (diff) |
user/libc: fseek + ftell for getting a file's size
Diffstat (limited to 'src/user/lib/include/stdio.h')
-rw-r--r-- | src/user/lib/include/stdio.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/user/lib/include/stdio.h b/src/user/lib/include/stdio.h index 74c5230..063c81f 100644 --- a/src/user/lib/include/stdio.h +++ b/src/user/lib/include/stdio.h @@ -33,6 +33,7 @@ size_t fread(void *restrict ptr, size_t size, size_t nitems, FILE *restrict); size_t fwrite(const void *restrict ptr, size_t size, size_t nitems, FILE *restrict); char *fgets(char *buf, int size, FILE *f); int fseek(FILE *f, long offset, int whence); +long ftell(FILE *f); int feof(FILE *); int ferror(FILE *); |