Mention the return value of the slurp function and the implications
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
This commit is contained in:
parent
4cf8bebf71
commit
49cf3d7edb
@ -14,6 +14,9 @@
|
||||
/*
|
||||
* Reads size bytes into the destination buffer from filename.
|
||||
*
|
||||
* On success, true is returned. Otherwise, false is returned and the content
|
||||
* of destination is left untouched.
|
||||
*
|
||||
*/
|
||||
bool slurp(const char *filename, char *destination, int size) {
|
||||
int fd;
|
||||
|
Loading…
Reference in New Issue
Block a user