diff options
author | Lieuwe Rooijakkers <lieuwerooijakkers@gmail.com> | 2024-07-23 00:23:06 +0200 |
---|---|---|
committer | Lieuwe Rooijakkers <lieuwerooijakkers@gmail.com> | 2024-08-02 22:38:00 +0200 |
commit | c4ccd4e0798a7ed9af6f86d9819b309575d418a0 (patch) | |
tree | f76183914b89d801b2853e78d4886cc00281dad0 /src/io/read_file.h | |
parent | 420e28845d5068d0c3b432ffc0d5fc80b7b7d7e2 (diff) |
file_to_filebuf: isdir output parameter
Diffstat (limited to 'src/io/read_file.h')
-rw-r--r-- | src/io/read_file.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/io/read_file.h b/src/io/read_file.h index 89f738b..d097c05 100644 --- a/src/io/read_file.h +++ b/src/io/read_file.h @@ -1,5 +1,6 @@ #pragma once +#include <stdbool.h> #include <stddef.h> #include <stdio.h> @@ -20,5 +21,5 @@ struct filebuf { }; struct filebuf *stream_to_filebuf(FILE *restrict stream, int openOptions); -struct filebuf *file_to_filebuf(char *fname, int openOptions); +struct filebuf *file_to_filebuf(char *fname, int openOptions, bool *isdir); void free_filebuf(struct filebuf *filebuf); |