aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/file.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/file.h')
-rw-r--r--src/common/file.h19
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 */