delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/07/23:38:08

From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: "Missing" functions
Date: Mon, 04 Aug 1997 09:57:55 -0700
Organization: Alcyone Systems
Lines: 30
Message-ID: <33E60A13.DAA26A8@alcyone.com>
References: <9708041259 DOT AA23701 AT hpschrot DOT bre DOT da>
NNTP-Posting-Host: newton.alcyone.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Jens Bischoff wrote:

> Are you sure that "strcasecmp" is not part of the ANSI-C-string
> library routines?

Yes.

> At least on my machine there's no "stricmp", but "strcasecmp".

There's a strcasecmp in BSD 4.3, and there's a stricmp (and strcmpi) in
Turbo C.  Neither are ANSI.

> And a test program with "strcasecmp" in it compiles & runs
> without error or warnings  when the ANSI-C compiler switch is set.

This, I would suspect, is because the -ansi switch only affects how the
_language_ is processed, not which functions rae included when you link in
the standard library.

Remember, testing something with your compiler isn't guaranteed to
indicate whether or not something you're doing is ANSI compliant or not --
the only way to be sure is to have the standard in front of you.

-- 
       Erik Max Francis, &tSftDotIotE / email / mailto:max AT alcyone DOT com
                     Alcyone Systems /   web / http://www.alcyone.com/max/
San Jose, California, United States /  icbm / 37 20 07 N  121 53 38 W
                                   \
   "Love is not love which alters / when it alteration finds."
                                 / William Shakespeare, _Sonnets_, 116

- Raw text -


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