[Proj] Modern C functions

RICHARD Didier didier.richard at ign.fr
Thu Feb 26 12:22:55 EST 2009


> On Thursday 26 February 2009 11:18:37 am Frank Warmerdam wrote:
>> Gerald I. Evenden wrote:
>> > This is a quick probe of the programming types in this group.
>> >
>> > In finalizing Rel. 2.0 of geodesic and libgeodesy I ran across
>> functions
> 	...
>> My experience has been that all POSIX environments have these functions,
>> but that Win32 (aka MSVC) instead uses strnicmp() and stricmp() to do
>> the
>> same thing.  I've lived with macros like:
>>
>> #ifndef EQUAL
>> #if defined(WIN32) || defined(WIN32CE)
>> #  define EQUALN(a,b,n)           (strnicmp(a,b,n)==0)
>> #  define EQUAL(a,b)              (stricmp(a,b)==0)
>> #else
>> #  define EQUALN(a,b,n)           (strncasecmp(a,b,n)==0)
>> #  define EQUAL(a,b)              (strcasecmp(a,b)==0)
>> #endif
>> #endif
>
> It is pointless to make a tirade against a sebaceous entity seeking world
> domination, the embodiment of "Big Brother", but I cannot imagine who,
> what
> or why the "i" means in the name stricmp.
>

i[gnore case], I guess !-)

didier

> Sigh!
>
> --
> The whole religious complexion of the modern world is due
> to the absence from Jerusalem of a lunatic asylum.
> -- Havelock Ellis (1859-1939) British psychologist
> _______________________________________________
> Proj mailing list
> Proj at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/proj
>


-- 
RICHARD Didier - Chef du pôle technique du Géoportail
2/4, avenue Pasteur - 94165 Saint Mandé Cedex
Tél : +33 (0) 1 43 98 83 23


More information about the Proj mailing list