[
Lists Home |
Date Index |
Thread Index
]
> >
> > Have you looked at the API of James Clark's Expat?
>
> The reason there is that (especially) character data are passed
> through pointers into an internal working buffer. Having a null
> terminator in the API would effectively force Expat to allocate
> a new copy of the string.
>
> Could there be a similar siutation for a writer API?
> Possibly yes - as it is conceivable that the data to be
> written out are part of some larger text/structure and
> there is no reason to force a new string allocation on the caller.
Yes, this is my point.
|