fs_read_file_buffer
-
size_t fs_read_file_buffer(const char *path, void *buf, size_t size)
Writes file content to buffer.
void buf[1024]; fs_read_file("foo.txt", buf, 1024);
- Parameters
path – [in] Some null-terminated path to existing file
buf – [in] Some memory buffer
size – [in] Buffer size
- Returns
The number of bytes that would have been readen if buf was large enough (excluding the null-terminating character).