Ticket #18353: foo.c

File foo.c, 385 bytes (added by bhaible, 14 months ago)

test case

Line 
1#include <stdio.h>
2#include <wchar.h>
3
4int
5main (void)
6{
7 {
8 char result[80];
9 int ret = snprintf (result, sizeof (result), "%La", 3.1416015625L);
10 printf ("ret = %d result=%s\n", ret, result);
11 }
12 {
13 wchar_t result[80];
14 int ret = swprintf (result, sizeof (result) / sizeof (wchar_t), L"%La", 3.1416015625L);
15 printf ("ret = %d result=%ls\n", ret, result);
16 }
17}