Re: [DebianGIS] GRASS 6.0.1 for sarge and on-going work...
On Thu, Sep 15, 2005 at 10:20:36AM +1200, Hamish wrote:
> > That code needs also some refinement, due to wide use of deprecated
> > sprintf(). AFAIK, but for snprintf(), GRASS has his own G_asprintf()
> > which is also better and portable. But that's an upstream issue
> > anyway...
>
> .. one that gives me headaches. AFAIK G_asprintf() writes to a tmp file
> and then reads from it which IMO is too inefficent for widespread use.
> Still waiting for something better or perhaps a better understanding of
> why the existing version really isn't so bad after all.
>
Better because portable than. But not so better :) On glibc there is
asprintf() available. I did not check the code at all, but isn't it used
if available on autoconf test? Writing on a file is ugly indeed.
--
Francesco P. Lovergine
Reply to: