Le Sam 26 mar 14:00:55 2005, Per Jessen écrit:
> I was just reviewing Tomasz' minor changes regarding my earlier patch, when I 
> noticed this.
> Hardly worth patching, but still.  
> 
> 
> http://jessen.ch/files/patch-clamav-20050326-strcspn-for-isnumb
> 

Depending if you need speed, it is probably more efficient to write a
function with this :

  while(*str >= '0' && *str <= '9') str ++;
  return *str == 0;

If the empty string case has to return 0, prepend 

  if (!*str) return 0;

_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html

Reply via email to