bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gnulib] strings.h in argz.c?


From: Bruno Haible
Subject: Re: [bug-gnulib] strings.h in argz.c?
Date: Mon, 30 Oct 2006 13:36:52 +0100
User-agent: KMail/1.9.1

Simon Josefsson wrote:
> #if defined(HAVE_STRING_H)
> #  include <string.h>
> #elif defined(HAVE_STRINGS_H)
> #  include <strings.h>
> #endif
> #if defined(HAVE_MEMORY_H)
> #  include <memory.h>
> #endif
> 
> Is strings.h needed on any modern platform?

No.
1) <string.h> exists on all platforms, for several years now.
   The #elif branch in the above code is therefore never executed.
2) There are a few other functions defined in glibc <strings.h>, but they
   are not useful. See
   http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00113.html

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]