foot/config.h
Daniel Eklöf de575ac58e
conf: improve configuration file parsing
* Strip whitespaces from keys and values
* Detect (and ignore) comments
* Detect syntax errors (no value specified etc)
* Error out on syntax errors and invalid keys
2019-07-17 10:12:14 +02:00

11 lines
166 B
C

#pragma once
#include <stdbool.h>
struct config {
char *shell;
char *font;
};
bool config_load(struct config *conf);
void config_free(struct config conf);