Skip to content

Instantly share code, notes, and snippets.

Created August 31, 2015 22:34
Show Gist options
  • Save anonymous/5194255331c09423d36e to your computer and use it in GitHub Desktop.
Save anonymous/5194255331c09423d36e to your computer and use it in GitHub Desktop.
bool ContainsChar(char c, const char * str)
{
char * ptr = str;
while(ptr != null)
{
if(ptr == c)
{
return true;
}
}
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment