diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-05-17 18:37:41 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-05-17 18:37:45 +0200 |
commit | 3acfb083365a33a377f437a9a2e41d545d91ddfb (patch) | |
tree | 918b4e37ff5ef48a543856da37b419749cd707bf /src/file.h | |
parent | signal: refactoring (diff) | |
download | cimple-3acfb083365a33a377f437a9a2e41d545d91ddfb.tar.gz cimple-3acfb083365a33a377f437a9a2e41d545d91ddfb.zip |
file: rework file_read
It now increases the buffer size exponentially until it finishes reading
the file.
Diffstat (limited to 'src/file.h')
-rw-r--r-- | src/file.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -16,6 +16,6 @@ int my_chdir(const char *dir, char **old); char *my_readlink(const char *path); int file_exists(const char *path); -int file_read(int fd, char **output, size_t *len); +int file_read(int fd, char **output, size_t *size); #endif |