wctomb() now also returns 1 on 0-char

This commit is contained in:
ceriel 1991-01-15 11:55:33 +00:00
parent 853c0cfc99
commit 60fd245e73

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;
}