00001 /* 00002 * squareball: A general-purpose library for C99. 00003 * Copyright (C) 2015-2016 Rafael G. Martins <rafael@rafaelmartins.eng.br> 00004 * 00005 * This program can be distributed under the terms of the BSD License. 00006 * See the file LICENSE. 00007 */ 00008 00009 #ifndef _SQUAREBALL_FILE_H 00010 #define _SQUAREBALL_FILE_H 00011 00035 char* sb_file_get_contents(const char *path, size_t *len, sb_error_t **err); 00036 00050 void sb_file_put_contents(const char *path, const char* contents, size_t len, 00051 sb_error_t **err); 00052 00064 void sb_mkdir_recursive(const char *path, sb_error_t **err); 00065 00068 #endif /* _SQUAREBALL_FILE_H */