diff options
author | nullableVoidPtr <30564701+nullableVoidPtr@users.noreply.github.com> | 2019-08-04 09:53:50 +0000 |
---|---|---|
committer | nullableVoidPtr <30564701+nullableVoidPtr@users.noreply.github.com> | 2019-08-04 09:53:50 +0000 |
commit | 5c4f2bd4d38b4865ff79287b62c31cac5b655301 (patch) | |
tree | 84fab194955e859fd62bf73201d5e96876f4d143 /tools/gbagfx/util.h | |
parent | 0a3b060d298bfb89e83d21d9b7b9f96a07994f41 (diff) |
Add tools
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 0000000..6d7a9c2 --- /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 |