bug-gnulib
[Top][All Lists]
Advanced

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

Re: xstring.h


From: Bruno Haible
Subject: Re: xstring.h
Date: Sat, 10 May 2008 04:20:27 +0200
User-agent: KMail/1.5.4

Karl Berry wrote:
> I see that it was convenient to be able
> to pass in two pointers, const char *start and const char *end

Yes, some people prefer to pass 'end', some people prefer to pass 'len'.
Since  end = start + len,  len = end - start,  the choice is mostly a matter
of taste.

Since <string.h> functions like 'memset', 'memcpy' pass 'len', I figure it's
consistent to use that parameter here too.

Bruno





reply via email to

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