1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-11-25 09:45:02 +00:00
oot/tools/util.h
zelda2774 281aaa0cb6
Speed up build a bit (#341)
* Speed up elf2rom

* Remove all built-in make rules

* Only perform a single mkdir

* Optimize elf2rom further

Co-authored-by: zelda2774 <zelda2774@invalid>
2020-08-23 13:43:26 -04:00

17 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