Skip to content

Instantly share code, notes, and snippets.

@alsamitech
Created July 1, 2021 04:34
Show Gist options
  • Select an option

  • Save alsamitech/d03aa4c35c7c7d84e644691128c1536f to your computer and use it in GitHub Desktop.

Select an option

Save alsamitech/d03aa4c35c7c7d84e644691128c1536f to your computer and use it in GitHub Desktop.
contains_chars
_Bool contains_chars(char* str, char* contains){
while(*str){
for(size_t i=0;contains[i];i++)
if(*str==contains[i])return 1;
str++;
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment