Created
June 28, 2021 20:05
-
-
Save alsamitech/343a86610744dd863eb03a8388362a4d to your computer and use it in GitHub Desktop.
str_first - returns whichever character of first is the first character in str
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
| char str_first(char* str, char* first){ | |
| while(*str){ | |
| for(size_t i=0;first[i];i++) | |
| if(*str==first[i]) return *str; | |
| str++; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment