(main): Avoid warning. Pretty printing.
This commit is contained in:
parent
245ef8366a
commit
dec5e067e8
|
@ -10,7 +10,8 @@
|
|||
int
|
||||
main (void)
|
||||
{
|
||||
int test=0, idx=0;
|
||||
int test = 0;
|
||||
int idx = 0;
|
||||
char buf[100], *pchar;
|
||||
wchar_t tmp[10];
|
||||
wchar_t tmp1[] = { L'W', L'o', L'r', L'l', L'd', L'\0' };
|
||||
|
@ -19,7 +20,7 @@ main (void)
|
|||
|
||||
pchar = setlocale (LC_ALL, "");
|
||||
printf ("locale : %s\n",pchar);
|
||||
printf ("MB_CUR_MAX %d\n", MB_CUR_MAX);
|
||||
printf ("MB_CUR_MAX %Zd\n", MB_CUR_MAX);
|
||||
|
||||
puts ("---- test 1 ------");
|
||||
test = mbstowcs (tmp, str, (strlen (str) + 1) * sizeof (char));
|
||||
|
|
Loading…
Reference in New Issue