aboutsummaryrefslogblamecommitdiffstats
path: root/strstarts.c
blob: ca44e527f42e503206c7701a43c96e0d610b40fe (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                         
/* See LICENSE file for copyright and license details. */
#include "libsimple.h"


int
libsimple_strstarts(const char *s, const char *t)
{
	for (; *t && *s == *t; s++, t++);
	return !*t;
}