Source

linux-scalability-benchmarks / libowfat / stralloc / stralloc_starts.c

The default branch has multiple heads

Full commit
1
2
3
4
5
6
7
8
9
#include "stralloc.h"
#include "byte.h"
#include "str.h"

extern int stralloc_starts(stralloc *sa,const char *in) {
  register size_t len=str_len(in);
  return (len<=sa->len && !byte_diff(sa->s,len,in));
}