Hi,
I´m trying to match some commands with sscanf.
responds "scan 1: 6 0"
so it doesn´t parse the second number. however when I add the expected number to the input, the first number becomes zero.
Any clues?
responds "scan 2: 0 4"
I´m trying to match some commands with sscanf.
Rich (BB code):
char i, c,d,e;
i=sscanf("SET S 6 H ", "SET S%d H %d",&c,&d);
printf("scan %d: %d %d",i,c,d);
so it doesn´t parse the second number. however when I add the expected number to the input, the first number becomes zero.
Any clues?
Rich (BB code):
char i, c,d,e;
i=sscanf("SET S 6 H 4", "SET S%d H %d",&c,&d);
printf("scan %d: %d %d",i,c,d);