runit

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

str_start.c (370B)


      1 /* Public domain. */
      2 
      3 #include "str.h"
      4 
      5 int str_start(register const char *s,register const char *t)
      6 {
      7   register char x;
      8 
      9   for (;;) {
     10     x = *t++; if (!x) return 1; if (x != *s++) return 0;
     11     x = *t++; if (!x) return 1; if (x != *s++) return 0;
     12     x = *t++; if (!x) return 1; if (x != *s++) return 0;
     13     x = *t++; if (!x) return 1; if (x != *s++) return 0;
     14   }
     15 }