[En-Nut-Discussion] Problem with sscanf() function!

Tomasz Niewęgłowski nieweglowski at rts.com.pl
Fri Jun 13 09:13:38 CEST 2003

I try to use sscanf() function in my code but this function returns me wrong
data. There is fragment of my code program

char bufferr[] = {"+130 2\n"};

int ktory;
int ile;
ile = sscanf( buffer, "+130 %i", &ktory);

sscanf() function all times returns me 0 (ile = 0) and puts 128 in the
"ktory" (ktory = 128) variable even if second element in buffer was changed.


More information about the En-Nut-Discussion mailing list