Bonkers

Andy Armstrong andy at hexten.net
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, hexten.net



More information about the london.pm mailing list