mirror of
https://github.com/stefanocasazza/ULib.git
synced 2025-09-28 19:05:55 +08:00
16 lines
362 B
C
16 lines
362 B
C
/* 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;
|
|
}
|
|
}
|