Initial import from FreeBSD RELENG_4:
[dragonfly.git] / contrib / libio / tests / tstdiomisc.exp
1 t1: count=5
2 sscanf ("12345", "%ld", &x) => 1, x = 12345
3 sscanf ("12345", "%llllld", &x) => 0, x = -1
4 sscanf ("12345", "%LLLLLd", &x) => 0, x = -1
5 sscanf ("test ", "%*s%n", &x) => 0, x = 4
6 sscanf ("test ", "%2*s%n", &x) => 0, x = -1
7 sscanf ("12 ", "%l2d", &x) => 0, x = -1
8 sscanf ("12 ", "%2ld", &x) => 1, x = 12