5 main(int arc
, char *argv
[])
12 res
= sscanf(s
, "%u %n", &val
, &n
);
13 printf("Result of sscanf = %d\n", res
);
14 printf("Scanned format %%u = %u\n", val
);
15 printf("Possibly scanned format %%n = %d\n", n
);
16 if (n
!= 3 || val
!= 111 || res
!= 1)
20 res
= sscanf(s
, "%u%n", &val
, &n
);
21 printf("Result of sscanf = %d\n", res
);
22 printf("Scanned format %%u = %u\n", val
);
23 printf("Possibly scanned format %%n = %d\n", n
);
24 if (n
!= 3 || val
!= 111 || res
!= 1)