Mail Archives: djgpp/1997/08/04/09:02:55
> > Use strcasecmp() instead, which is more partable
> > and the same.
> In what way is strcasecmp more portable than stricmp?
> I've never seen strcasecmp on any other compiler, and
> stricmp is at least standard on PC compilers and a lot
> of the older Unices (Borland, at least, had 'strcmpi'
> as a macro alias for 'stricmp').
Are you sure that "strcasecmp" is not part of the ANSI-C-string
At least on my machine there's no "stricmp", but "strcasecmp".
And a test program with "strcasecmp" in it compiles & runs
without error or warnings when the ANSI-C compiler switch is set.
- Raw text -