From c4ccd4e0798a7ed9af6f86d9819b309575d418a0 Mon Sep 17 00:00:00 2001 From: Lieuwe Rooijakkers Date: Tue, 23 Jul 2024 00:23:06 +0200 Subject: file_to_filebuf: isdir output parameter --- src/io/read_file.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/io/read_file.h') 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 #include #include @@ -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); -- cgit v1.2.3-70-g09d2