| lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | #include <stdio.h> |
| 2 | #include <string.h> | ||||
| 3 | |||||
| 4 | int | ||||
| 5 | main (int argc, char *argv[]) | ||||
| 6 | { | ||||
| 7 | const char teststring[] = "<tag `word'>"; | ||||
| 8 | int retc, a, b; | ||||
| 9 | |||||
| 10 | retc = sscanf (teststring, "<%*s `%n%*s%n'>", &a, &b); | ||||
| 11 | |||||
| 12 | printf ("retc=%d a=%d b=%d\n", retc, a, b); | ||||
| 13 | |||||
| 14 | return retc == -1 && a == 6 && b == 12 ? 0 : 1; | ||||
| 15 | } | ||||