delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/04/23:19:03

Date: Tue, 5 Aug 1997 11:12:02 +0800 (GMT)
From: Orlando Andico <orly AT gibson DOT eee DOT upd DOT edu DOT ph>
To: Christopher Croughton <crough45 AT amc DOT de>
cc: Jens Bischoff <J DOT Bischoff AT airbus DOT dasa DOT de>, djgpp AT delorie DOT com
Subject: Re: "Missing" functions
In-Reply-To: <97Aug4.162528gmt+0100.17042@internet01.amc.de>
Message-ID: <Pine.SGI.3.93.970805110307.2768A-100000@gibson>
MIME-Version: 1.0

On Mon, 4 Aug 1997, Christopher Croughton wrote:

..
> header files (most are in <unistd.h>, a Unix specific header).  This
> thread is the first time I've heard of 'strcasecmp', no other library
> I've used has had it and being nonstandard I've avoided looking for
> similar functions because I try to write maximally portable code.

strcasecmp() and its ilk are available to my experience on Linux (and all
other systems that use GNU libc), SGI IRIX 5.x/6.x, Digital UNIX v3.2, and
Solaris 2.x. These are the systems for which I have access, I can't say 
about others. The manual page for strcasecmp() under IRIX 5.3 says,

 "The index, rindex, strcasecmp, strncasecmp routines are from the
  4.3BSD or 4.3BSD-tahoe standard C library."

The manual page under Linux simply states that the function conforms to
BSD 4.3, while Solaris doesn't say anything. The Digital UNIX manual page
also adds that strncasecmp() can only be used for 7-bit ASCII and
shouldn't be used in internationalized applications.

Your statement surprised me because I have yet to come across a libc that
DOESN'T have strcasecmp() and company.. although I guess older System V
UNIX's might not have it.

-------------------------------------------------------------------
Orlando Alcantara Andico
WWW:   http://www.dilnet.upd.edu.ph/~orly/   Email: orly AT mozcom DOT com
ICBM:  14 deg. 30' N, 120 deg. 59' E         POTS:  (+632) 932-2385
"violet serene like none I have seen apart from dreams, that escape
 me, there was no girl as warm as you."


- Raw text -


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