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:
Olivier Gayot 2019-09-19 15:36:00 +02:00
parent 4cf8bebf71
commit 49cf3d7edb

View File

@ -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;