#include #include int main(void) { int c; char string[64]; unsigned int ii; unsigned int pos = 0; FILE *conf_file = fopen("test.conf", "rw"); while ((c = fgetc(conf_file)) != EOF) { switch (c) { case ' ': case '\t': case '\r': case '\n': pos++; break; case '\"': ii = 0; while ((c = fgetc(conf_file)) != '\"') string[ii++] = c; string[ii] = 0; printf("string: %s\n", string); pos += ii+1; break; default: break; } } return getchar(); }