#include #include //einfaches Parserprogramm char *get_config(char *name, FILE *file) { char buffer[200]; char a_name[100]; static char value[100]; size_t i,len; rewind(file); while (!feof(file)) { fscanf(file," %200[^\n]",buffer); if (';' == buffer[0] ) continue; sscanf(buffer," %99[^ =] = %99[^\n]",a_name,value); len = strlen(a_name); for (i=0;i