tech-userlevel archive

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

Re: CVS commit: src/lib/libc/string

On Wed, Sep 24, 2008 at 08:43:17PM -0400, der Mouse wrote:
 > > All three of strpbrk, strspn, and strcspn, should use the same
 > > underlying algorithm, whichever we decide is best.
 > There may be no single best algorithm.  I offer for consideration the
 > thought that common usage patterns may differ enough from call to call
 > that the best algorithm for one call may differ substantially from the
 > best algorithm for another.

These functions are all pretty obscure (rightly or wrongly) and so
there's unlikely to be any meaningful systematic divergence in usage
patterns. And besides, strpbrk and strcspn are essentially the same.

David A. Holland

Home | Main Index | Thread Index | Old Index