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

Bug#729436: [libc6-dev] strcasecmp declared twice



Package: libc6-dev
Version: 2.17-93
Severity: normal

--- Please enter the report below this line. ---

According to strcasecmp(3) and strcasecmp(3p) the function strcasecmp should be declared in strings.h.

However it is actually declared both in string.h and strings.h:
/usr/include/string.h:extern int strcasecmp (const char *__s1, const char *__s2)
/usr/include/string.h:extern int strcasecmp_l (const char *__s1, const char *__s2,
/usr/include/strings.h:extern int strcasecmp (const char *__s1, const char *__s2)
/usr/include/strings.h:extern int strcasecmp_l (const char *__s1, const char *__s2, __locale_t __loc)

If the declaration in string.h is a typo, please remove it.
Otherwise please update the manpage to mention that on Linux the function is actually declared in both string.h and strings.h, and you should check yourself that you included strings.h because you won't get any warning from the compiler about implicit declarations.

--- System information. ---
Architecture: amd64
Kernel:       Linux 3.12.0

Debian Release: jessie/sid
  500 unstable        ftp.ro.debian.org 
  500 stable          security.debian.org 
  500 stable          ftp.ro.debian.org 

--- Package information. ---
Package's Depends field is empty.

Package's Recommends field is empty.

Package's Suggests field is empty.


Reply to: