summaryrefslogtreecommitdiff
path: root/tools/rsfont/util.h
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2018-12-20 20:43:40 -0500
committerPikalaxALT <pikalaxalt@gmail.com>2018-12-20 20:43:40 -0500
commitd141011e7fcc564625118e69649f965384cb5be7 (patch)
treedbd31192976088437d77473c3444bb8981369e94 /tools/rsfont/util.h
parent7f5addc626584ab24c8da1760d64ef3b8e5c24b7 (diff)
Track tools
Diffstat (limited to 'tools/rsfont/util.h')
-rw-r--r--tools/rsfont/util.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/rsfont/util.h b/tools/rsfont/util.h
new file mode 100644
index 000000000..6d7a9c21e
--- /dev/null
+++ b/tools/rsfont/util.h
@@ -0,0 +1,14 @@
+// Copyright (c) 2015 YamaArashi
+
+#ifndef UTIL_H
+#define UTIL_H
+
+#include <stdbool.h>
+
+bool ParseNumber(char *s, char **end, int radix, int *intValue);
+char *GetFileExtension(char *path);
+unsigned char *ReadWholeFile(char *path, int *size);
+unsigned char *ReadWholeFileZeroPadded(char *path, int *size, int padAmount);
+void WriteWholeFile(char *path, void *buffer, int bufferSize);
+
+#endif // UTIL_H