guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scm_take_locale_stringn using realloc


From: Marius Vollmer
Subject: Re: scm_take_locale_stringn using realloc
Date: Sat, 11 Jun 2005 23:39:40 +0300
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Kevin Ryde <address@hidden> writes:

> In scm_take_locale_stringn, how about using realloc to add a null
> terminator to the block being acquired?  That should usually be better
> than the current code doing malloc+copy+free.
>
> Something like the following,

Yes, very good.

-- 
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3  331E FAF8 226A D5D4 E405




reply via email to

[Prev in Thread] Current Thread [Next in Thread]