summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/config.c b/config.c
index d1bdb10..a343448 100644
--- a/config.c
+++ b/config.c
@@ -56,6 +56,11 @@ char *read_file(const char *filename, long *size) {
return buf;
}
+char *find_line(char *str) {
+ for (; *str != '\n' && *str != '\0'; str++);
+ return str;
+}
+
config *parse_config(const char *filename) {
/* Size of the file, in bytes. */
long filesize = 0;