[GRASS-dev] G_squeeze()

Glynn Clements glynn at gclements.plus.com
Fri Jul 22 23:23:06 EDT 2011


Martin Landa wrote:

> 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.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list