[En-Nut-Discussion] scanf bug?

Tyou tyou at i-da.co.jp
Tue Jul 22 10:56:23 CEST 2003


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




More information about the En-Nut-Discussion mailing list