From 3acfb083365a33a377f437a9a2e41d545d91ddfb Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 17 May 2023 18:37:41 +0200 Subject: file: rework file_read It now increases the buffer size exponentially until it finishes reading the file. --- src/file.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/file.h') 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 -- cgit v1.2.3