summaryrefslogtreecommitdiff
path: root/ucspi-tcp-0.88/str_start.c
blob: 43430bb6f0afc13ec40c18e88347c9abf2d6432f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "str.h"

int str_start(register char *s,register 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;
  }
}