On Mon, Sep 17, 2001 at 02:33:53PM -0500, Gibbs Tanton - tgibbs wrote:
> Okey Dokey.  With that being the case, it appears we should rethink
> string_grow/string_make.  If we get a length of 0, we should allocate 1 byte
> and store '\0' in it (really storing '\0' is not necessary, but it is always
> nice to initialize).  We can still keep the length as being 0, but this way
> it will be portable.

How about always allocating size+1 and stomping '\0' to the [size]th bytes?

-- 
$jhi++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

Reply via email to