wctomb() now also returns 1 on 0-char
This commit is contained in:
parent
9e970befed
commit
3ddb8e24b7
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue