Re: [xml-dev] Genx

From
Karl Waclawek <>
To
Date
2004-01-20T15:45:07Z
ID
<00a501c3df6c$615c8060$9e539696@citkwaclaww2k>
Thread
Re: [xml-dev] Genx
> > 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.

To be able to deal efficiently with null-terminated strings one
can indicate this to the writer API by passing -1 for the text 
length instead of calling strlen. 

Karl