wctomb() now also returns 1 on 0-char

This commit is contained in:
ceriel 1991-01-15 11:55:33 +00:00
parent 9e970befed
commit 3ddb8e24b7

View file

@ -13,5 +13,5 @@ wctomb(char *s, wchar_t wchar)
if (!s) return 0; /* no state dependent codings */
*s = wchar;
return (*s != '\0');
return 1;
}