aboutsummaryrefslogtreecommitdiff
path: root/src/common.cpp
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.cpp
parent12feee12ba92c3f47ab80bf4ebe96f51dfbc599a (diff)
downloadadvent-of-code-644663969201ced8e32fe56c7d1fd712d2fa1330.tar.gz
advent-of-code-644663969201ced8e32fe56c7d1fd712d2fa1330.zip
day1
Diffstat (limited to 'src/common.cpp')
-rw-r--r--src/common.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/common.cpp b/src/common.cpp
new file mode 100644
index 0000000..8ac3a96
--- /dev/null
+++ b/src/common.cpp
@@ -0,0 +1,13 @@
+#include "common.h"
+
+#include <fcntl.h>
+#include <sys/mman.h>
+#include <sys/stat.h>
+
+line_view load_file(const char* path) {
+ return {nullptr, 0};
+}
+
+line_view next_line(const char* file, size_t offset) {
+ return {nullptr, 0};
+}