libowfat/scan/scan_nonwhitenskip.c

10 lines
207 B
C
Raw Normal View History

2001-02-02 17:54:47 +00:00
#include "scan.h"
#include <ctype.h>
2006-11-07 17:56:05 +00:00
size_t scan_nonwhitenskip(const char *s,size_t limit) {
2001-02-02 17:54:47 +00:00
register const char *t=s;
register const char *u=t+limit;
while (t<u && !isspace(*t)) ++t;
return t-s;
}