[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: compiling on Nto...
From: |
Alain Magloire |
Subject: |
Re: compiling on Nto... |
Date: |
Sat, 14 Apr 2001 18:22:34 -0400 (EDT) |
>
> On Sat, Apr 14, 2001 at 01:11:38AM -0400, Alain Magloire wrote:
>
> > > * QNX needed to include <strings.h> for many of the useful string
> > > functions.
> >
> > Ok,
> > Which one was POSIX/ANSI C again? <string.h> or <strings.h> ?
> > I think it is <string.h>, <strings.h> is the obsolete one and bet
> > that strcasecmp which is not part of POSIX is define in <strings.h>
>
> According to Harbisson and Steele, the header for ISO C is <string.h>
>
> They make no reference to strcasecmp, but the Linux man pages say that
> it's a BSD 4.4 extension. Libiberty has a portable version.
Noted. I added support for platform missing this.
lib/str(n)casecmp.c
> > Another POSIX thing. basename() is not posix. But I thing the latest
> > UNIX98 says it can be in libgen.h.
>
> libiberty also has this.
Good point. Change the code to use lib/basename.c:base_name()
Thanks.
--
alain