mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-16 04:44:44 +00:00
First proper commit.
This commit is contained in:
parent
be78236d36
commit
087f561f77
14086 changed files with 1200489 additions and 1 deletions
17
tools/util.h
Normal file
17
tools/util.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
#ifndef _UTIL_H_
|
||||
#define _UTIL_H_
|
||||
|
||||
#ifdef __GNUC__
|
||||
__attribute__((format(printf, 1, 2)))
|
||||
#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
|
Loading…
Add table
Add a link
Reference in a new issue