summaryrefslogtreecommitdiffstats
path: root/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'util.h')
-rw-r--r--util.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/util.h b/util.h
index be38db5..ccac549 100644
--- a/util.h
+++ b/util.h
@@ -288,4 +288,14 @@ char *xconfstr(int name);
*/
char *xgetdelim(FILE *file, char delim);
+/**
+ * fopen() variant that takes open() style flags.
+ *
+ * @param path
+ * The path to open.
+ * @param flags
+ * Flags to pass to open().
+ */
+FILE *xfopen(const char *path, int flags);
+
#endif // BFS_UTIL_H