diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2018-12-21 11:44:02 -0500 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2018-12-21 11:44:02 -0500 |
commit | d5de7960a330953b3a7d7684122997c0d8aedcf1 (patch) | |
tree | 882caaf9875700cccb73e391a7a014a782e579fa /tools/gbagfx/util.h | |
parent | a7ab82a948cdbbe30da4307d2245369980440bea (diff) | |
parent | d141011e7fcc564625118e69649f965384cb5be7 (diff) |
Merge branch 'master' of github.com:pret/pokefirered
Diffstat (limited to 'tools/gbagfx/util.h')
-rw-r--r-- | tools/gbagfx/util.h | 14 |
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 |