[GRASS-dev] what can come before G_gisinit()?
glynn at gclements.plus.com
Fri Oct 6 02:56:15 EDT 2006
> Subject: [GRASS-dev] what can come before G_gisinit()?
Nothing that's part of GRASS.
And ideally, nothing at all. It isn't totally inconceivable that
future versions of G_gisinit() could have side-effects which affect
core ANSI functions (e.g. setting the locale, or installing malloc
> is it ok to call G_calloc() before G_gisinit()?
G_calloc() calls G_fatal_error() if calloc() fails. G_fatal_error()
calls G_program_name(), which uses the program name set by
Beyond that, just because the current G_gisinit() implementation
doesn't do much, that doesn't mean that future version won't.
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev