Quoting myself... > * What's the reason for doing: > if(sscanf(name, "temp%d_ove%c%c", &num, &last, &check) == 2 > && last =='r') > instead of > if(sscanf(name, "temp%d_over%c", &num, &check) == 2) > ? I of course meant "== 1" in the second case. -- Jean Delvare http://www.ensicaen.ismra.fr/~delvare/