aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/file.h
blob: d002bf7be91ba47c0d42e38b71248c03339e25e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * blogc: A blog compiler.
 * Copyright (C) 2014-2019 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 <stdbool.h>
#include "error.h"

#define BC_FILE_CHUNK_SIZE 1024

char* bc_file_get_contents(const char *path, bool utf8, size_t *len, bc_error_t **err);

#endif /* _FILE_H */