summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2021-06-04 21:12:39 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2021-06-04 21:12:39 -0400
commit140659ba9c5542a83f087fbbe258115b909e422b (patch)
treef5bbb3143149974cf1efd5c061a4db4f0c50fe2f /config.c
parentc32f7dd056a97fc322d1328c9c44d2e05d8bd7c6 (diff)
Started work on the parser loop.
Diffstat (limited to 'config.c')
-rw-r--r--config.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/config.c b/config.c
index a343448..b6a5701 100644
--- a/config.c
+++ b/config.c
@@ -82,6 +82,8 @@ config *parse_config(const char *filename) {
return NULL;
}
- for (; *buf != '\0'; buf++) {
+ for (; *buf != '\0'; buf = find_line(buf)) {
+ char *value;
+ char *name = strtok_r(buf, "=", &value);
}
}