bug-gnulib
[Top][All Lists]
Advanced

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

Re: strnlen.h needed?


From: Simon Josefsson
Subject: Re: strnlen.h needed?
Date: Thu, 11 Aug 2005 11:57:50 +0200
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

Bruno Haible <address@hidden> writes:

> 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.

Installed.

> 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);

I added this, but now there is a comment in both strnlen.c and
strnlen.h.  Should we remove one of them?




reply via email to

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