summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
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
+}