On Mon, Sep 17, 2001 at 10:38:26PM +0300, Jarkko Hietaniemi wrote:
> How about always allocating size+1 and stomping '\0' to the [size]th bytes?

I'm trying to kill off that age-old C-ism and brainwash people into believing
that a null in a string is just as significant as any other byte, so that it
doesn't all go Horribly Wrong when it comes to implementing UTF-16, UTF-32 and
transcodings.

Simon
-- 
Those who do not understand Unix are condemned to reinvent it, poorly.
- Henry Spencer, University of Toronto Unix hack

Reply via email to