[GRASS5] Problem compiling Grass51
paul-grass at stjohnspoint.co.uk
Wed Apr 30 09:06:05 EDT 2003
On Wed, 30 Apr 2003, Radim Blazek wrote:
> 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:
> however 'f._file = -1;' is not very portable or yes? I guess
> what it means only.
It seems fine on my Irix system and compiles without warnings or errors.
And looks nice and simple as well. I would say go ahead with it.
More information about the grass-dev