crt: new implementation for btowc and wctob

Replacementes for C95 functions btowc and wctob now use mbrtowc
and wcrtomb respectively to perform conversion. This ensures that
their behavior is consistent with mbrtowc and wcrtomb functions.

Signed-off-by: Kirill Makurin <maiddaisuki@outlook.com>
2 files changed