[GRASS-dev] [bug #4628] (grass) r.out.tiff: check for .tif.tif
Brad Douglas
rez at touchofmadness.com
Tue Jun 20 06:18:30 EDT 2006
On Tue, 2006-06-20 at 09:26 +0100, Paul Kelly wrote:
> >>> if( strncasecmp(ext, desired_ext, strlen(desired_ext)) == 0 )
> >>
> >>Is strncasecmp() portable? man page says "only" BSD 4.4 compliant.
> >
> >
> > Yes, it's BSD and not to our definition of portable. Please use
> > G_strcasecmp().
>
> 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).
--
Brad Douglas <rez touchofmadness com> KB8UYR
Address: 37.493,-121.924 / WGS84 National Map Corps #TNMC-3785
More information about the grass-dev
mailing list