summary refs log tree commit diff
path: root/runit-2.1.2/src/str_start.c
blob: 017efc7d2f805dd28b5338c2268097a5802f9593 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* Public domain. */

#include "str.h"

int str_start(register const char *s,register const char *t)
{
  register char x;

  for (;;) {
    x = *t++; if (!x) return 1; if (x != *s++) return 0;
    x = *t++; if (!x) return 1; if (x != *s++) return 0;
    x = *t++; if (!x) return 1; if (x != *s++) return 0;
    x = *t++; if (!x) return 1; if (x != *s++) return 0;
  }
}