diff options
author | dzwdz | 2022-07-27 12:27:48 +0200 |
---|---|---|
committer | dzwdz | 2022-07-27 12:27:48 +0200 |
commit | 55b3a04e97b7ddd0db17a4fc3ba35461b106b92f (patch) | |
tree | ef05f83045eee6628385daa46ef7f15d5ff48032 /src/user/lib/include | |
parent | 734da5ae528b1e61e9701d70bfe7034a20bb61f2 (diff) |
user/libc: fseek()
Diffstat (limited to 'src/user/lib/include')
-rw-r--r-- | src/user/lib/include/stdio.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/user/lib/include/stdio.h b/src/user/lib/include/stdio.h index b8de85d..eb59793 100644 --- a/src/user/lib/include/stdio.h +++ b/src/user/lib/include/stdio.h @@ -4,6 +4,10 @@ #define EOF (-1) +#define SEEK_SET 1 +#define SEEK_CUR 2 +#define SEEK_END 3 + int printf(const char *fmt, ...); int snprintf(char *str, size_t len, const char *fmt, ...); @@ -17,9 +21,11 @@ FILE *freopen(const char *path, const char *mode, FILE *); FILE *fdopen(int fd, const char *mode); FILE *file_clone(const FILE *); int fclose(FILE *); +int fflush(FILE *f); 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); +int fseek(FILE *f, long offset, int whence); int feof(FILE *); int ferror(FILE *); |