freebsd-dev/contrib/libg++/libio/tests/tstdiomisc.exp
Peter Wemm 5acb90c9b6 Import of raw libg++-2.7.2, but in a very cut-down form. There is still
a small amount of unused stuff (by the bmakefiles to follow), but it
isn't much and seems harmless enough.
1996-10-03 21:35:18 +00:00

9 lines
312 B
Plaintext

t1: count=5
sscanf ("12345", "%ld", &x) => 1, x = 12345
sscanf ("12345", "%llllld", &x) => 0, x = -1
sscanf ("12345", "%LLLLLd", &x) => 0, x = -1
sscanf ("test ", "%*s%n", &x) => 0, x = 4
sscanf ("test ", "%2*s%n", &x) => 0, x = -1
sscanf ("12 ", "%l2d", &x) => 0, x = -1
sscanf ("12 ", "%2ld", &x) => 1, x = 12