squareball  0.2.0.53-dd5b
A general-purpose library for C99
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 
30 char* sb_file_get_contents(const char *path, size_t *len, sb_error_t **err);
31 
42 char* sb_file_get_contents_utf8(const char *path, size_t *len, sb_error_t **err);
43 
52 void sb_file_put_contents(const char *path, const char* contents, size_t len,
53  sb_error_t **err);
54 
62 void sb_mkdir_recursive(const char *path, sb_error_t **err);
63 
66 #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)
char * sb_file_get_contents_utf8(const char *path, size_t *len, sb_error_t **err)
void sb_file_put_contents(const char *path, const char *contents, size_t len, sb_error_t **err)
struct _sb_error_t sb_error_t
Definition: sb-error.h:71