On Tue, 2009-08-11 at 22:04 +0300, Uoti Urpala wrote: > for (j = 0; fmt_table[j].name != NULL; j++) { > int fmtlen = strlen(fmt_table[j].name); > if (!strncmp(sfmt, fmt_table[j].name, fmtlen) > && sfmt[fmtlen] == 0 || sfmt[fmtlen] == ',') > break; > } The || part should of course be inside parentheses.