Files
glibc/stdio-common/scanf10.c
T

16 lines
296 B
C
Raw Normal View History

1996-12-30 01:47:46 +00:00
#include <stdio.h>
#include <string.h>
int
main (int argc, char *argv[])
{
const char teststring[] = "<tag `word'>";
int retc, a, b;
retc = sscanf (teststring, "<%*s `%n%*s%n'>", &a, &b);
printf ("retc=%d a=%d b=%d\n", retc, a, b);
1997-01-23 04:24:20 +00:00
return retc == -1 && a == 6 && b == 12 ? 0 : 1;
1996-12-30 01:47:46 +00:00
}