5 main(int argc, char *argv[])
11 sscanf("0x10 10", "%x %x", &x, &y);
12 sprintf(buf, "%d %d", x, y);
14 status |= strcmp (buf, "16 16");
15 sscanf("P012349876", "P%1d%4d%4d", &point, &x, &y);
16 sprintf(buf, "%d %d %d", point, x, y);
17 status |= strcmp (buf, "0 1234 9876");
19 sscanf("P112349876", "P%1d%4d%4d", &point, &x, &y);
20 sprintf(buf, "%d %d %d", point, x, y);
21 status |= strcmp (buf, "1 1234 9876");
24 puts (status ? "Test failed" : "Test passed");