If you do a lot of string compares, look into the Boyan-Moore string
compare routines.  The longer the string being looked for, the faster it
compares.

bug

On Mon, 29 Mar 1999, James wrote:

> On Mon, 29 Mar 1999, Bug Hunter wrote:
> 
> # 
> #   strtok() uses a global to store its intermediate results.  meaning that
> # you can get unexpected results if several parts of your program use it.
> # 
> 
> it uses a local static variable actually. and it is very destructive, but
> if you make a copy of the string you're mangling then it's ok.
> 
> how efficient are the string library routines? if my program does lots of
> strcmp()s and strcat()s etc will it be slower than if i was to write my
> own versions?
> 
> -- 
> +++      If at first you don't succeed, you must be a programmer     +++
> [EMAIL PROTECTED]     http://www.users.globalnet.co.uk/~kermit
> 

Reply via email to