Hello, Is mbstowcs() suppose to null-terminate? I ask because, on OpenBSD 4.9 (generic, no patches), it never null terminates. Even though the C90 draft seems to imply that it should when there's enough room.
http://www.open-std.org/jtc1/sc22/wg14/www/docs/n869/ I'm unsure of the expected behavior here, and wasn't able to find anything on the web, which is why I ask this, rather than submit a bug report. Thanks