diff options
author | martmists <mail@martmists.com> | 2020-04-20 00:29:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-20 00:29:28 +0200 |
commit | 805f609248867463bce8b37940d2fcc12b5d1702 (patch) | |
tree | d76ef7b263db620053fe51bb374b15568e176cf2 /tools/nitrogfx/util.h | |
parent | afef55816689d7fdfbddc8858f15daa5b887234c (diff) | |
parent | 776d1ef8924dc9c46574b883b362294d7bb6d94b (diff) |
Merge pull request #4 from PikalaxALT/finish_header
Initial dump of filesystem
Diffstat (limited to 'tools/nitrogfx/util.h')
-rw-r--r-- | tools/nitrogfx/util.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/nitrogfx/util.h b/tools/nitrogfx/util.h new file mode 100644 index 00000000..6d7a9c21 --- /dev/null +++ b/tools/nitrogfx/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 |