Re: [PATCH] Make xstrndup common
- From
Junio C Hamano <junkio@cox.net>
- Date
- May 4, 2007, 05:20 UTC
- Message-ID
- <7vtzutxiyx.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <81b0412b0705030206u3a6b8a46qfd98ccf597d3c96e@mail.gmail.com>
"Alex Riesen" <raa.lkml@gmail.com> writes:
> I'd suggest using platform-optimized memchr:
True. On some architectures, strnlen() is a single instruction.