9 static char text1
[] = "1.3 1 string";
10 static char text2
[] = "NO_NUMBERS_TEXT";
11 static char text3
[] = "FSOMETHING";
12 static char text4
[] = "0xAF"; /* Hex integer */
13 static char text5
[] = "xAF"; /* "Hex integer" without 0 */
14 static char text6
[] = "AF"; /* "Hex integer" without 0x */
18 cnt
= sscanf(text1
, "%f %d %s", &f
, &i
, s
);
22 TEST(strcmp(s
, "string") == 0);
25 cnt
= sscanf(text2
, "%i", &i
);
30 cnt
= sscanf(text3
, "%i", &i
);
35 cnt
= sscanf(text4
, "%i", &i
);
40 cnt
= sscanf(text5
, "%i", &i
);
45 cnt
= sscanf(text6
, "%i", &i
);