getfile3abz
Read a file into a buffer.
Usage
#include <abz/getfile.h> void *getfile(const char *filename, size_t *count);
Libraries
Abz Library (-labz), Debug Library (-ldebug)
Overview
The getfile() function reads an entire file into a buffer.
Return value
The getfile() function returns the buffer (and sets count to the size of the buffer) or NULL if an error occurred.
Check errno to see what error occurred.
Notes
None of the libabz routines are thread-safe. I'm not planning to change this either! For more information, please see http://threading.2038bug.com/