[GRASS5] PATCH: asprintf.c
Paul Kelly
paul-grass at stjohnspoint.co.uk
Wed Jun 8 20:52:37 EDT 2005
Hello Brad
On Wed, 8 Jun 2005, Brad Douglas wrote:
> I updated asprintf.c to cannibalize the GIS API, using G_tempfile().
>
> Objections?
It may be a bit slower but probably not much if at all. It is clearer what
it is doing and more consistent with usage in other GRASS modules anyway.
Previous correspondence on the list has indicated that in all C
implementations we can rely on the size of a char being 1 byte so it is
more efficient not to use the sizeof() function.
It would be nice also to use indent according to the spec in the
SUBMITTING document to format the file nicely, as I left it in a total
mess when originally submitting it.
Paul
More information about the grass-dev
mailing list