int chrstrq(string char, string source)
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; }
There are no talkbacks on this documentation page yet. Post the first?
Doc Nav |
Your docs |