diff options
Diffstat (limited to 'src/file.h')
-rw-r--r-- | src/file.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/file.h b/src/file.h new file mode 100644 index 0000000..d2c4390 --- /dev/null +++ b/src/file.h @@ -0,0 +1,21 @@ +/* + * blogc: A blog compiler. + * Copyright (C) 2015-2016 Rafael G. Martins <rafael@rafaelmartins.eng.br> + * + * This program can be distributed under the terms of the BSD License. + * See the file LICENSE. + */ + +#ifndef _FILE_H +#define _FILE_H + +#include <stddef.h> +#include <stdio.h> +#include "error.h" + +#define BLOGC_FILE_CHUNK_SIZE 1024 + +char* blogc_file_get_contents(const char *path, size_t *len, blogc_error_t **err); +int blogc_fprintf(FILE *stream, const char *format, ...); + +#endif /* _FILE_H */ |