Mail Archives: djgpp/1997/08/04/23:19:03
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 -