[GRASS-dev] G_squeeze()
Martin Landa
landa.martin at gmail.com
Sat Jul 23 02:41:38 EDT 2011
Hi,
2011/7/23 Glynn Clements <glynn at gclements.plus.com>:
>> what's the reason why G_squeeze() return pointer to it's argument?
>
> It has been that way since at least 4.2.1. The comment there says:
>
> * returns the address of the resulting compressed string.
>
> It may have once stripped leading whitespace by simply advancing the
> pointer rather than moving the data.
>
> As nothing in 7.0 uses the returned value, the return type should
> probably be changed to void.
seems to be same with G_chop(), right?
Martin
--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa
More information about the grass-dev
mailing list