From 1c8174674d522a2c55b4f143f7e0dac848e34281 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Fri, 9 Sep 2016 03:33:14 +0200 Subject: blogc: common: moved "file" to common --- src/common/file.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/common/file.h (limited to 'src/common/file.h') 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 + * + * This program can be distributed under the terms of the BSD License. + * See the file LICENSE. + */ + +#ifndef _FILE_H +#define _FILE_H + +#include +#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 */ -- cgit v1.2.3-18-g5258