summaryrefslogtreecommitdiffstats
path: root/util.h
diff options
context:
space:
mode:
authorErik K <erikk@previousplan.org>2022-05-13 17:24:26 +0000
committerErik K <erikk@previousplan.org>2022-05-13 17:24:26 +0000
commitb2fada1dd19211d71e04557653d08e697134a6ce (patch)
tree063b6d1280193046321db1e53506be5b72d2220f /util.h
initial commit
Diffstat (limited to 'util.h')
-rw-r--r--util.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/util.h b/util.h
new file mode 100644
index 0000000..e1e49e7
--- /dev/null
+++ b/util.h
@@ -0,0 +1,9 @@
+#include <stdio.h>
+#include <stdlib.h>
+
+char *xfgets(char *, size_t, FILE *);
+FILE *xfopen(const char *, const char *);
+int xfputs(const char *, FILE *);
+void *xmalloc(size_t);
+void *xrealloc(void *, size_t);
+size_t my_strlcpy(char *, const char *, size_t);