rtl433
UNKNOWN
RTL-433 utility
|
Light-weight (i.e. More...
Functions | |
static off_t | fsize (const char *path) |
int | hasconf (char const *path) |
Check if a file exists and can be read. More... | |
char * | readconf (char const *path) |
Open a config file, read contents to memory. More... | |
int | getconf (char **conf, struct conf_keywords const keywords[], char **arg) |
Return the next keyword token and set the optional argument. More... | |
Light-weight (i.e.
dumb) config-file parser.
Copyright (C) 2018 Christian W. Zuckschwerdt zany@ triq .net
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
|
static |
References stat::st_size, and stat().
Referenced by mg_http_handler2(), and readconf().
int getconf | ( | char ** | conf, |
struct conf_keywords const | keywords[], | ||
char ** | arg | ||
) |
Return the next keyword token and set the optional argument.
conf | current position in conf |
keywords | list of possible keywords |
arg | optional out pointer to a argument string |
References conf_keywords::key, and conf_keywords::keyword.
Referenced by parse_conf_text().
int hasconf | ( | char const * | path | ) |
Check if a file exists and can be read.
path | input file name |
Referenced by parse_conf_try_default_files().
char* readconf | ( | char const * | path | ) |
Open a config file, read contents to memory.
path | input file name |
References fsize().
Referenced by parse_conf_file().