Re: mbstowcs(3) may not return -1

2012-06-21 Thread Garrett Wollman
In article <4fe340ff.80...@gmail.com>, demelier.da...@gmail.com writes: >On 21/06/2012 14:55, Sergey Kandaurov wrote: >> It returns (size_t)(-1). >> I don't know how is it correct, but this conforms to C spec. >Mm, if I understand well, since it is cast to size_t, I think the return >value will b

Re: mbstowcs(3) may not return -1

2012-06-21 Thread David Demelier
On 21/06/2012 14:55, Sergey Kandaurov wrote: On 21 June 2012 16:38, David Demelier wrote: Hello, While reading the manpage of mbstowcs I noticed an error in the RETURN VALUES : The mbstowcs() function returns the number of wide characters converted, not counting any terminating null

Re: mbstowcs(3) may not return -1

2012-06-21 Thread Sergey Kandaurov
On 21 June 2012 19:42, David Demelier wrote: > On 21/06/2012 14:55, Sergey Kandaurov wrote: >> >> On 21 June 2012 16:38, David Demelier  wrote: >>> >>> Hello, >>> >>> While reading the manpage of mbstowcs I noticed an error in the RETURN >>> VALUES : >>> >>>     The mbstowcs() function returns the

Re: mbstowcs(3) may not return -1

2012-06-21 Thread David Demelier
On 21/06/2012 14:55, Sergey Kandaurov wrote: On 21 June 2012 16:38, David Demelier wrote: Hello, While reading the manpage of mbstowcs I noticed an error in the RETURN VALUES : The mbstowcs() function returns the number of wide characters converted, not counting any terminating null

Re: mbstowcs(3) may not return -1

2012-06-21 Thread Sergey Kandaurov
On 21 June 2012 16:38, David Demelier wrote: > Hello, > > While reading the manpage of mbstowcs I noticed an error in the RETURN > VALUES : > >     The mbstowcs() function returns the number of wide characters converted, >     not counting any terminating null wide character, or -1 if an invalid >

mbstowcs(3) may not return -1

2012-06-21 Thread David Demelier
Hello, While reading the manpage of mbstowcs I noticed an error in the RETURN VALUES : The mbstowcs() function returns the number of wide characters converted, not counting any terminating null wide character, or -1 if an invalid multibyte character was encountered. Since siz