Skip to main content.
home | support | download

Back to List Archive

Re: Re: Status of PHRASE search

From: David Norris <dave(at)not-real.webaugur.com>
Date: Wed Apr 19 2000 - 21:31:25 GMT
SRE wrote:
> >From the Unix man page:
>   strcmp() and  strncmp()  use  native  character  comparison...
>      implementation-dependent.
>   strcasecmp() and strncasecmp()  use  native  character  com-
>      parison as above and assume the ASCII character set.

So, we may be able to use strcmp in place of strcasecmp on Windows? 
That looked like a viable option from what I could tell.  The man page
in Linux didn't mention that strcmp is implementation dependant.  In
Linux, strcmp and strcasecmp appear to be the same.

If so, would this be reasonable?
#ifdef _WIN32
#define strcasecmp strcmp
#endif

-- 
,David Norris
  Open Server Architecture Project - http://www.opensa.org/
  Dave's Web - http://www.webaugur.com/dave/
  Dave's Weather - http://wx.findu.com/kg9ae-1
  ICQ Universal Internet Number - 412039
  E-Mail - dave@webaugur.com
Received on Wed Apr 19 14:30:52 2000