squareball  0.2.0.25-0a68
A general-purpose library for C99
 All Data Structures Files Functions Variables Typedefs Pages
sb-file.h
Go to the documentation of this file.
1 /*
2  * squareball: A general-purpose library for C99.
3  * Copyright (C) 2014-2018 Rafael G. Martins <rafael@rafaelmartins.eng.br>
4  *
5  * This program can be distributed under the terms of the BSD License.
6  * See the file LICENSE.
7  */
8 
9 #ifndef _SQUAREBALL_FILE_H
10 #define _SQUAREBALL_FILE_H
11 
35 char* sb_file_get_contents(const char *path, size_t *len, sb_error_t **err);
36 
50 void sb_file_put_contents(const char *path, const char* contents, size_t len,
51  sb_error_t **err);
52 
64 void sb_mkdir_recursive(const char *path, sb_error_t **err);
65 
68 #endif /* _SQUAREBALL_FILE_H */
void sb_mkdir_recursive(const char *path, sb_error_t **err)
char * sb_file_get_contents(const char *path, size_t *len, sb_error_t **err)
Definition: sb-error.h:30
void sb_file_put_contents(const char *path, const char *contents, size_t len, sb_error_t **err)