mm/tools/util.h
Rozelette dc7b8cc5b4
Add some OOT tools (#17)
* Add first_diff.py and sym_info.py

* Add c tools from OOT. Replace yaz0 tool
2020-09-17 17:11:59 -04:00

18 lines
419 B
C

#ifndef _UTIL_H_
#define _UTIL_H_
#ifdef __GNUC__
__attribute__((format(printf, 1, 2), noreturn))
#endif
void util_fatal_error(const char *msgfmt, ...);
void *util_read_whole_file(const char *filename, size_t *pSize);
void util_write_whole_file(const char *filename, const void *data, size_t size);
uint32_t util_read_uint32_be(const uint8_t *data);
void util_write_uint32_be(uint8_t *data, uint32_t val);
#endif