[GRASS-dev] [bug #4628] (grass) r.out.tiff: check for .tif.tif

Paul Kelly paul-grass at stjohnspoint.co.uk
Tue Jun 20 06:58:42 EDT 2006



On Tue, 20 Jun 2006, Brad Douglas wrote:

>> Hmmm but it needs to be strncasecmp so "tif" will also match "tiff" etc.
>> I guess I could implement it as a for loop matching character by
>> character. Will change that.
>
> I can add G_strncasecmp() if it's absolutely necessary (and nobody
> objects).

Well, I have put in a portable version (into basename.c) now and it works 
so OK for now I think. But if we come across somewhere else that it's 
needed then would be worthwhile.

Paul




More information about the grass-dev mailing list