/* libc/string/strcspn.c Finds in a string the last occurrence of a byte not in a set  */
size_t strcspn(const char *s, const char *reject)
/* libc/string/strcspn.c Finds in a string the last occurrence of a byte not in a set  */
size_t strcspn(const char *s, const char *reject)
{
	const char * p;
	const char * r;
	size_t count = 0;
	for (p = s; *p != '\0'; ++p)
	{
		for (r = reject; *r != '\0'; ++r)
		{
			if (*p == *r)
				return count;
		}
		++count;
	}
	return count;
}