Andy Armstrong andy at
Thu May 10 23:22:41 BST 2007

On 10 May 2007, at 23:09, Nicholas Clark wrote:
> er, why not strlen() and then a pointer addition?
> That's not the first time I've seen that idiom, but I can't see how an
> implementation of strchr() is going to be tighter than one of strlen()

I can think of at least one implementation where strchr() is  
definitely slower than strlen().

Remember Norcroft C Nick? :)

Andy Armstrong,

More information about the mailing list