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 <[email protected]>
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to