Source

linux-scalability-benchmarks / libowfat / scan / scan_whitenskip.c

The default branch has multiple heads

Full commit
1
2
3
4
5
6
7
8
9
#include "scan.h"
#include <ctype.h>

size_t scan_whitenskip(const char *s,size_t limit) {
  register const char *t=s;
  register const char *u=t+limit;
  while (t<u && isspace(*t)) ++t;
  return t-s;
}