chrstrq

chrstrq
int chrstrq(string char, string source)

Documentation

Ding.

Example Usage

int chrstrq(string char, string source)
// Pass: A char to search for, the source string to look in
// Return: 1 if char is found within source
// Assmes: char is only one character
{
	int i;
	int length = len(source);
	for (i = 0; i < length; i++)
	{
		if (!strcmp(char, mid(source, i, 1))) return 1;
	}
	return 0;
}
Talkback

There are no talkbacks on this documentation page yet. Post the first?

Post a new comment?

Doc Nav

Your docs
View All Docs

If you log in, you can edit the documentation, or create your own documents and tutorials!

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.