blob: f4ef82659932d0aab939366c645f11d13a4e0c24 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include <stdint.h>
#include <stdio.h>
int main() {
int val1;
printf("%d\n", sscanf("10 20 30 40", "%*lld %*d %d", &val1));
printf("%d\n", val1);
int64_t large, val2;
printf("%d\n", sscanf("1000000 -1125899906842620 -123 -1073741823",
"%lld %*lld %ld %*d", &large, &val2));
printf("%lld,%d\n", large, val2);
return 0;
}
|