summaryrefslogtreecommitdiff
path: root/tools/gbagfx/util.h
diff options
context:
space:
mode:
authorDiegoisawesome <diego@domoreaweso.me>2018-01-01 03:07:55 -0600
committerDiegoisawesome <diego@domoreaweso.me>2018-01-01 03:07:55 -0600
commitad277a69dd468e25fa47585945c3df86be828ea7 (patch)
tree7837c5d112b9f0fa67cfa3b524f7d689b4f8faec /tools/gbagfx/util.h
parente852700954d6111d495c916d7e17b7e9165ce4de (diff)
parente649e3d2481faef109006b9157eeb22e1bff9fe2 (diff)
Merge remote-tracking branch 'xenonnsmb/master'.
Closes #102, closes #103, and closes #134.
Diffstat (limited to 'tools/gbagfx/util.h')
-rw-r--r--tools/gbagfx/util.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/gbagfx/util.h b/tools/gbagfx/util.h
new file mode 100644
index 000000000..6d7a9c21e
--- /dev/null
+++ b/tools/gbagfx/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