aboutsummaryrefslogtreecommitdiffstats
path: root/src/file.h
blob: 5ff8dd01d304f8e45334934cf3fced501cb27ac9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * blogc: A blog compiler.
 * Copyright (C) 2015 Rafael G. Martins <rafael@rafaelmartins.eng.br>
 *
 * This program can be distributed under the terms of the BSD License.
 * See the file COPYING.
 */

#ifndef _FILE_H
#define _FILE_H

#include <stdio.h>
#include <stdlib.h>
#include "utils/utils.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 */