wctomb() now also returns 1 on 0-char
This commit is contained in:
parent
853c0cfc99
commit
60fd245e73
@ -13,5 +13,5 @@ wctomb(char *s, wchar_t wchar)
|
|||||||
if (!s) return 0; /* no state dependent codings */
|
if (!s) return 0; /* no state dependent codings */
|
||||||
|
|
||||||
*s = wchar;
|
*s = wchar;
|
||||||
return (*s != '\0');
|
return 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user