libtools
file.h
Go to the documentation of this file.
1 
20 #ifndef __TOOLS_FILE_H
21 #define __TOOLS_FILE_H
22 
23 #include <stddef.h>
24 
39 int put_file_contents(const char *path, const void *buf, size_t len);
40 
49 void *get_file_contents(const char *path, void **buf, size_t *len);
50 
53 #endif /* __TOOLS_FILE_H */
int put_file_contents(const char *path, const void *buf, size_t len)
save data to file
void * get_file_contents(const char *path, void **buf, size_t *len)
allocate memory and read data from file