putfile3abz
Write a file to a buffer.
Usage
#include <abz/putfile.h> int putfile(const char *filename, mode_t mode, const void *buf, size_t count);
Libraries
Abz Library (-labz), Debug Library (-ldebug)
Overview
The putfile() function saves a buffer to a file.
Return value
The putfile() function returns 0 if successful, -1 if not.
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/