summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-12-29 23:02:42 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-12-29 23:02:42 -0500
commit642b09558e586d47f172fcfd18c296d400317708 (patch)
tree796666be6c3721a3c70dad66bd94c902b297e8ab /config.c
parent51837743b0f90973bf63582a8f34662e9677629e (diff)
started config file
Diffstat (limited to 'config.c')
-rw-r--r--config.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/config.c b/config.c
new file mode 100644
index 0000000..4ae3dbb
--- /dev/null
+++ b/config.c
@@ -0,0 +1,12 @@
+// Read a configuration file.
+// Config files are formatted as several sections, each containing key = value pairs.
+// e.g.:
+// [section1]
+// thing1 = 33
+// thing2 = 454
+// [section2]
+// asdf = 123
+void config_read(Ted *ted, char const *filename) {
+ char section_name[32] = {0};
+ // @TODO
+}