libconf/test.c

7 lines
223 B
C
Raw Normal View History

2020-06-08 16:46:34 +08:00
#include "libconf.h"
int main() {
printf("%s\n", read_conf("test.conf", "global", "IP_SEGMENT"));
printf("%s\n", read_conf("test.conf", "global", "a"));
printf("%s\n", read_conf("test.conf", "http", "port"));
}