squareball 0.2.0.29-1f41 A general-purpose library for C99

- Main Page
- Data Structures
- Files
- Examples

- File List
- Globals

All Data Structures Files Functions Variables Typedefs
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
52 char* sb_file_get_contents_utf8(const char *path, size_t *len, sb_error_t **err);
53
67 void sb_file_put_contents(const char *path, const char* contents, size_t len,
68 sb_error_t **err);
69
81 void sb_mkdir_recursive(const char *path, sb_error_t **err);
82
85 #endif /* _SQUAREBALL_FILE_H */
sb_mkdir_recursive
void sb_mkdir_recursive(const char *path, sb_error_t **err)
sb_file_get_contents
char * sb_file_get_contents(const char *path, size_t *len, sb_error_t **err)
sb_file_get_contents_utf8
char * sb_file_get_contents_utf8(const char *path, size_t *len, sb_error_t **err)
sb_error_t
Definition: sb-error.h:30
sb_file_put_contents
void sb_file_put_contents(const char *path, const char *contents, size_t len, sb_error_t **err)