[GRASS5] Problem compiling Grass51

Radim Blazek blazek at itc.it
Wed Apr 30 06:14:09 EDT 2003


On Tuesday 29 April 2003 05:18 pm, Paul Kelly wrote:
> I think we need a G_snprintf() and G_vsnprintf() or something like that.
> Would it be all right just to copy the code straight from a 3rd party
> snprintf implementation to enable this?

I replaced vsnprintf by vfprintf. G_asprintf() seems to be even better
than G_snprintf(). Can I add G_asprintf() suggested by Eric G. Miller
(http://grass.itc.it/pipermail/grass5/2002-May/002936.html) to 5.1?

Nice code is here:
http://www.gnu-darwin.org/sources/4osf1/lib/libc/stdio/asprintf.c
however 'f._file = -1;' is not very portable or yes? I guess
what it means only. 
Maybe some other portable equivalent for such buffer exists?

Radim




More information about the grass-dev mailing list