strncasecmp

Andrew Marlow apm35 at student.open.ac.uk
Wed May 22 11:32:01 CEST 2002


roconnor at math.berkeley.edu writes:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>I was building Gnupg 1.0.7 for OS/2 and I had to manually add strncasecmp
>to util/strutil.c
>
>This probably should be added to the source files, along with the
>appropriate changes to configure.

I disagree.
Some environments have strncasecmp and others don't. I usually define my
own version of strncasecmp and the implementation differs from environment
to environment. Where I can implement it in terms of strncasecmp I do so,
otherwise I hand-code it. No direct calls to strncasecmp appear in the
code since it is a portability issue.

Regards,

Andrew M.





More information about the Gnupg-devel mailing list