Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat https://www.fefe.de/libowfat/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

16 lines
340 B

  1. #include "scan.h"
  2. #include <ctype.h>
  3. unsigned long scan_noncharsetnskip(const char *s,const char *charset,unsigned long limit) {
  4. register const char *t=s;
  5. register const char *u=t+limit;
  6. register const char* i;
  7. while (t<u) {
  8. for (i=charset; *i; ++i)
  9. if (*i==*t) break;
  10. if (*i==*t) break;
  11. ++t;
  12. }
  13. return t-s;
  14. }