MCPcopy Create free account
hub / github.com/FIX94/Nintendont / GRRLIB_LoadFile

Function GRRLIB_LoadFile

loader/source/grrlib.c:1475–1507  ·  view source on GitHub ↗

* Load a file to memory. * @param filename Name of the file to be loaded. * @param data Pointer-to-your-pointer. * Ie. { u8 *data; GRRLIB_LoadFile("file", &data); }. * It is your responsibility to free the memory allocated by this function. * @return A integer representating a code: * - 0 : EmptyFile. * - -1 : FileNotFound. * - -2 : OutOfMemory. *

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

Calls 4

f_open_charFunction · 0.85
mallocFunction · 0.85
f_readFunction · 0.85
freeFunction · 0.85

Tested by

no test coverage detected