forked from TeamTofuShop/segatools
refactor all common parts and games
This commit is contained in:
12
common/util/slurp.h
Normal file
12
common/util/slurp.h
Normal file
@ -0,0 +1,12 @@
|
||||
#include <stdbool.h>
|
||||
/*
|
||||
* 'slurp' reads the file identified by 'path' into a character buffer
|
||||
* pointed at by 'buf', optionally adding a terminating NUL if
|
||||
* 'add_nul' is true. On success, the size of the file is returned; on
|
||||
* failure, -1 is returned and ERRNO is set by the underlying system
|
||||
* or library call that failed.
|
||||
*
|
||||
* WARNING: 'slurp' malloc()s memory to '*buf' which must be freed by
|
||||
* the caller.
|
||||
*/
|
||||
long wslurp(const wchar_t* path, char **buf, bool add_nul);
|
Reference in New Issue
Block a user