12 if (sprintf (buf
, "%.0ls", L
"foo") != 0
15 puts ("sprintf (buf, \"%.0ls\", L\"foo\") produced some output");
19 #define SIZE (1024*70000)
22 char *dst
= malloc (SIZE
+ 1);
26 puts ("memory allocation failure");
31 sprintf (dst
, "%*s", SIZE
, "");
32 if (strnlen (dst
, SIZE
+ 1) != SIZE
)
34 puts ("sprintf (dst, \"%*s\", " STR(SIZE
) ", \"\") did not produce enough output");