No empty .Rs/.Re
[netbsd-mini2440.git] / regress / lib / libc / stdio / sscanf / sscanf.c
blob6a5359fac7b8dcc914284677031b9b838f1fe5cd
1 #include <stdio.h>
2 #include <err.h>
4 static const char str[] = "\f\n\r\t\v%z";
5 int
6 main(void)
8 /* set of "white space" symbols from isspace(3) */
9 char c = 0;
10 (void)sscanf(str, "%%%c", &c);
11 if (c != 'z')
12 errx(1, "expected `%c', got `%c'", 'z', c);
13 return 0;