[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gnulib] Re: strnlen.h needed?
From: |
Bruno Haible |
Subject: |
Re: [bug-gnulib] Re: strnlen.h needed? |
Date: |
Wed, 10 Aug 2005 20:12:57 +0200 |
User-agent: |
KMail/1.5 |
Simon Josefsson wrote:
> Ok to install? strnlen is a GNU extension, according to libc manual.
> There were some discussion regarding strnlen.h, but the patch below
> has worked for me for a while. Any problems can be fixed later on.
> It seems correct to me.
Looks OK to me too. Except I would add comments in strnlen.h:
/* Find the length (number of bytes) of STRING, but scan at most MAXLEN bytes.
If no '\0' terminator is found in that many bytes, return MAXLEN. */
extern size_t strnlen (const char *string, size_t maxlen);
Bruno
- Re: strnlen.h needed?, Simon Josefsson, 2005/08/10
- Re: [bug-gnulib] Re: strnlen.h needed?,
Bruno Haible <=