aboutsummaryrefslogtreecommitdiff
path: root/include/std/file.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/std/file.h')
-rw-r--r--include/std/file.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/std/file.h b/include/std/file.h
index c6753fd..9184053 100644
--- a/include/std/file.h
+++ b/include/std/file.h
@@ -32,8 +32,7 @@ CHECK_RESULT int mapped_file_init(MappedFile *self, const char *filepath, Mapped
CHECK_RESULT int mapped_file_deinit(MappedFile *self);
#endif
-/* @data will be allocated with am_malloc, should be deallocated with am_free */
-CHECK_RESULT int read_whole_file(const char *filepath, char **data, usize *size);
+CHECK_RESULT int read_whole_file(const char *filepath, Buffer *result);
/* @result_path will be allocated with am_malloc, should be deallocated with am_free */
CHECK_RESULT int file_get_canonical_path(const char *filepath, char **result_path, usize *result_path_size);