[GRASS-dev] G_strip does not strip line breaks(?)

Paul Kelly paul-grass at stjohnspoint.co.uk
Mon Nov 27 11:13:27 EST 2006


Perhaps try G_chop() instead? I have (IIRC) changed a few of these already 
for Windows portability.
Sorry reading e-mail on the move and not able to check if somebody has 
replied already...

Paul

On Sun, 26 Nov 2006, Jachym Cepicky wrote:

> Hallo,
> while testing r.quant, I found out, that r.quant is not able to parse
> "help" input correctly, because last "\n" character of the input is not
> being striped.
>
> r.quant uses G_strip (lib/gis/strings.c) for this purpose, which strips
> only " " and "\t" characters, but not "\n".
>
> I prepared this patch for strings.c. Do you think, it could be applied?
>
> Jachym
> -- 
> Jachym Cepicky
> e-mail: jachym.cepicky at centrum.cz
> URL: http://les-ejk.cz
> GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub
> -----------------------------------------
> OFFICE:
> Department of Geoinformation Technologies
> Zemedelska 3
> 613 00, Brno
> Czech Republick
> e-mail: xcepicky at node.mendelu.cz
> URL:    http://mapserver.mendelu.cz
> Tel.:   +420 545 134 514
>




More information about the grass-dev mailing list