From 11dc4b81935e3dfee997c421d8d6fa166edd7a05 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 24 Feb 2019 02:10:58 +0100 Subject: Initial commit, Function declaration work somewhat --- src/buffer_view.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/buffer_view.c (limited to 'src/buffer_view.c') diff --git a/src/buffer_view.c b/src/buffer_view.c new file mode 100644 index 0000000..96b0dd7 --- /dev/null +++ b/src/buffer_view.c @@ -0,0 +1,15 @@ +#include "../include/buffer_view.h" + +BufferView create_buffer_view_null() { + BufferView buffer_view; + buffer_view.data = NULL; + buffer_view.size = 0; + return buffer_view; +} + +BufferView create_buffer_view(const char *data, usize size) { + BufferView buffer_view; + buffer_view.data = data; + buffer_view.size = size; + return buffer_view; +} \ No newline at end of file -- cgit v1.2.3