aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/file.h
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-05-17 18:37:41 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-05-17 18:37:45 +0200
commit3acfb083365a33a377f437a9a2e41d545d91ddfb (patch)
tree918b4e37ff5ef48a543856da37b419749cd707bf /src/file.h
parentsignal: refactoring (diff)
downloadcimple-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file.h b/src/file.h
index ec3701c..ec989c3 100644
--- a/src/file.h
+++ b/src/file.h
@@ -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