Created
July 1, 2021 04:34
-
-
Save alsamitech/d03aa4c35c7c7d84e644691128c1536f to your computer and use it in GitHub Desktop.
contains_chars
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| _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