Hi, all, Maybe a bug in scanf (mainly in getf.c) ---------------------------------------------------- { char c; int i; long l; both scanf("%c,%d,%ld", &c, &i, &l); and scanf (("%c,%ld,%d", &c, &d, &i); last variable can not get value. however , scanf with single value is OK. } ---------------------------------------------------- tyou