Fix.
[glibc/pb-stable.git] / stdio-common / tst-sprintf.c
blobafbacd90375c86ac7563bff88e96db13aee0106f
1 #include <stdio.h>
2 #include <string.h>
5 int
6 main (void)
8 char buf[100];
9 int result = 0;
11 if (sprintf (buf, "%.0ls", L"foo") != 0
12 || strlen (buf) != 0)
14 puts ("sprintf (buf, \"%.0ls\", L\"foo\") produced some output\n");
15 result = 1;
18 return result;