1 /*
2 * reimplementation of Daniel Bernstein's byte library.
3 * placed in the public domain by Uwe Ohse, uwe@ohse.de.
4 */
5 #include "str.h"
6
7 int
str_start(const char * s,const char * t)8 str_start(const char *s,const char *t)
9 {
10 unsigned int i=0;
11 for (;;) {
12 if (!t[i]) return 1;
13 if (s[i]!=t[i]) return 0;
14 i++;
15
16 if (!t[i]) return 1;
17 if (s[i]!=t[i]) return 0;
18 i++;
19
20 if (!t[i]) return 1;
21 if (s[i]!=t[i]) return 0;
22 i++;
23
24 if (!t[i]) return 1;
25 if (s[i]!=t[i]) return 0;
26 i++;
27 }
28 }
29