Re: mbstowcs() null termination

2012-03-30 Thread Yarin
Very informative. Thanks. - Original message - From: Steffen Daode Nurpmeso To: Yarin Cc: tech@openbsd.org Subject: Re: mbstowcs() null termination Date: Fri, 30 Mar 2012 18:59:56 +0200 Hi, Yarin wrote [2012-03-30 17:01+0200]: > Hello, > > Is mbstowcs() suppose to null-ter

mbstowcs() null termination

2012-03-30 Thread Yarin
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 beha