aboutsummaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
authorkaiwu <kaiwu2004@gmail.com>2022-03-14 16:23:06 +0800
committerkaiwu <kaiwu2004@gmail.com>2022-03-14 16:23:06 +0800
commit644663969201ced8e32fe56c7d1fd712d2fa1330 (patch)
tree7d7c7dea61284622f31ca5bd1303d796ad207418 /src/common.h
parent12feee12ba92c3f47ab80bf4ebe96f51dfbc599a (diff)
downloadadvent-of-code-644663969201ced8e32fe56c7d1fd712d2fa1330.tar.gz
advent-of-code-644663969201ced8e32fe56c7d1fd712d2fa1330.zip
day1
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h11
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);