aboutsummaryrefslogtreecommitdiff
path: root/stechr.c
blob: d5bce2ff04be21d30afaa3fef3b39313c43b494a (plain) (blame)
1
2
3
4
5
6
7
8
char *
stechr(const char *src, const char *end, int c)
{
	while (src < end && *src && *(unsigned char *)src != (unsigned char)c)
		src++;

	return (char *)src;
}