[GRASS-dev] [grass-code I][566] g.rename fails to rename maps

Glynn Clements glynn at gclements.plus.com
Fri Dec 21 16:10:03 EST 2007

Francesco P. Lovergine wrote:

> > where strcmp was replaced with G_strcasecmp, thus making the compare 
> > case independent. So, the line should not be removed, but it should 
> > either be reverted to strcmp, or we need G_strcmp, which doesn't exist 
> > at this stage AFAICT.
> >
> Just curious, what's the point in having wrappers for two POSIX
> functions like them?

I suspect that G_strcasecmp() was originally added because GRASS ran
on systems which pre-dated the addition of strcasecmp() to POSIX. It
needs to remain, as Windows doesn't have strcasecmp().

There wouldn't be any point in having a G_strcmp() function.

Glynn Clements <glynn at gclements.plus.com>

More information about the grass-dev mailing list