|
Crinit -- Configurable Rootfs Init
|
Implementation of common functions not related to other specific features. More...

Functions | |
| int | crinitBinReadAll (uint8_t *buf, size_t n, const char *path) |
Implementation of common functions not related to other specific features.
| int crinitBinReadAll | ( | uint8_t * | buf, |
| size_t | n, | ||
| const char * | path | ||
| ) |
Reads a whole binary file to memory.
Will return an error if the given buffer is too small to read all of the file's contents.
| buf | The buffer where the data will be stored. Should be of sufficient size to hold the file to be read. |
| n | The size of the given memory buffer. |
| path | Path to the file to be read. |