[Proj] Modern C functions
Gerald I. Evenden
geraldi.evenden at gmail.com
Thu Feb 26 11:47:33 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.
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
More information about the Proj
mailing list