The libc library I’m currently using is missing wctomb() so I’m looking to come up with a replacement implementation. What are some complexities I should beware of? Can I simply grab each byte in the wchar and stick them inside an char array?
Share
You might want to pick up a copy of P.J. Plauger’s book, “The Standard C Library” – it provides a basic implementation of
wctomb()along with a discussion of wide character support in general.