diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-09-09 03:33:14 +0200 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-09-09 03:33:14 +0200 |
commit | 1c8174674d522a2c55b4f143f7e0dac848e34281 (patch) | |
tree | 5cb1d9c51036fb7993bb1bd43ad99089fed77721 /src/common/file.h | |
parent | 9dd0fcbeaed19c362ed2d1071d2ea967572b67f4 (diff) | |
download | blogc-1c8174674d522a2c55b4f143f7e0dac848e34281.tar.gz blogc-1c8174674d522a2c55b4f143f7e0dac848e34281.tar.bz2 blogc-1c8174674d522a2c55b4f143f7e0dac848e34281.zip |
blogc: common: moved "file" to common
Diffstat (limited to 'src/common/file.h')
-rw-r--r-- | src/common/file.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/common/file.h b/src/common/file.h new file mode 100644 index 0000000..e095de7 --- /dev/null +++ b/src/common/file.h @@ -0,0 +1,19 @@ +/* + * 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 "error.h" + +#define BC_FILE_CHUNK_SIZE 1024 + +char* bc_file_get_contents(const char *path, size_t *len, bc_error_t **err); + +#endif /* _FILE_H */ |