On Thu, Mar 19, 2015 at 01:36:45PM +0001, Jason McIntyre wrote: > On Thu, Mar 19, 2015 at 03:32:52PM +0200, Kaspars Bankovskis wrote: > > Is that really accurate to say that elements are stored in a pointer? > > > > no idea. it's why i asked stsp to look it over. > jmc
It's just that the previous sentence in those manuals is still about "..array pointed to by pwcs". And now the next sentence says that something is stored *in* pwcs, which imho doesn't sound quite consistenly. > > > > Index: mbstowcs.3 > > > > =================================================================== > > > > RCS file: /cvs/src/lib/libc/locale/mbstowcs.3,v > > > > retrieving revision 1.5 > > > > diff -u -p -u -r1.5 mbstowcs.3 > > > > --- mbstowcs.3 5 Jun 2013 03:39:22 -0000 1.5 > > > > +++ mbstowcs.3 18 Mar 2015 19:05:39 -0000 > > > > @@ -46,9 +46,9 @@ converts a null-terminated multibyte cha > > > > to the corresponding wide-character string and stores it in the array > > > > pointed to by > > > > .Fa pwcs . > > > > -This function may modify the first at most > > > > +Up to > > > > .Fa n > > > > -elements of the array pointed to by > > > > +elements are stored in > > > > .Fa pwcs . > > > > Each character will be converted as if > > > > .Xr mbtowc 3
