From 4fcff0ecc6f94dbc079f29b9636d810a16ef2ed7 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Fri, 5 Aug 2022 19:54:22 +0200 Subject: user/libc: fseek + ftell for getting a file's size --- src/user/lib/include/stdio.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/user/lib/include/stdio.h') 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 *); -- cgit v1.2.3