summaryrefslogtreecommitdiff
path: root/ucspi-tcp-0.88/str_start.c
blob: 757189d3c12d2fa0783cdf443ab1fae489646e08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#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;
  }
}