diff options
Diffstat (limited to 'src/common.h')
-rw-r--r-- | src/common.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h new file mode 100644 index 0000000..f242f48 --- /dev/null +++ b/src/common.h @@ -0,0 +1,11 @@ +#pragma once + +#include <stdlib.h> + +struct line_view { + char* line; + size_t length; +}; + +line_view load_file(const char*); +line_view next_line(const char*, size_t); |