diff options
author | xenonnsmb <xenonnsmb@users.noreply.github.com> | 2017-12-03 19:55:01 -0600 |
---|---|---|
committer | xenonnsmb <xenonnsmb@users.noreply.github.com> | 2017-12-03 19:55:01 -0600 |
commit | e649e3d2481faef109006b9157eeb22e1bff9fe2 (patch) | |
tree | 3348ffb6bbe7358a4082059960ef6bea8cf7e636 /tools/gbagfx/util.h | |
parent | eeaa59d8376045ddf008276e6c13c860f23eedaa (diff) |
adding tools from pokeruby
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 |