delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/04/09:02:55

From: Jens Bischoff <J DOT Bischoff AT airbus DOT dasa DOT de>
Message-Id: <9708041259.AA23701@hpschrot.bre.da>
Subject: Re: "Missing" functions
To: crough45 AT amc DOT de (Chris Croughton)
Date: Mon, 4 Aug 97 14:59:17 MESZ
Cc: djgpp AT delorie DOT com
In-Reply-To: <97Aug4.135334gmt+0100.17050@internet01.amc.de>; from "Chris Croughton" at Aug 4, 97 12:56 (noon)
Mailer: Elm [revision: 70.85]

> > 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
library routines?
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.

Jens

- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019