[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gnulib] Re: strnlen.h needed?
From: |
Dave Love |
Subject: |
Re: [bug-gnulib] Re: strnlen.h needed? |
Date: |
Mon, 14 Mar 2005 18:04:19 +0000 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/21.3 (gnu/linux) |
Bruno Haible <address@hidden> writes:
> Are you aware of some platforms which have strnlen(), but don't
> declare it?
GNU systems by default:
$ dpkg -l libc6|tail -1
ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries and Timezone
$ echo '#include <string.h>' | gcc -E - | grep strnlen
$ echo '#include <string.h>' | gcc -E -D_GNU_SOURCE - | grep strnlen
extern size_t strnlen (__const char *__string, size_t __maxlen)
$