[GRASS5] PATCH: asprintf.c

Brad Douglas rez at touchofmadness.com
Sun Jun 19 15:26:48 EDT 2005


On Sun, 2005-06-19 at 10:37 +0100, Glynn Clements wrote:
> Hamish wrote:
> 
> > G_asprintf() is using G_tempfile():
> > 
> > /* We cheat by printing to a tempfile via vfprintf and then reading it
> >  * back in.  Not the most efficient way, probably.
> >  */
> > 
> > 
> > Is the only way to have a safe, portable snprintf() *really* to write
> > and read off the disk? Surely we can do better.
> 
> As GRASS is GPL, we can just take the code from GNU libc.

I made the most recent changes to G_asprintf(), so I can take care of
this issue and post a diff to the list for review.

I'll look into it this afternoon if I'm not lured to the sunny outside.
=)


-- 
Brad Douglas <rez at touchofmadness.com>




More information about the grass-dev mailing list