Created
June 28, 2021 04:44
-
-
Save alsamitech/3885d114cff8e90c91d98ef98f47e5d3 to your computer and use it in GitHub Desktop.
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
| void str_replace_map(char* str, char* replace, char* with){ | |
| for(size_t i=0;str[i];i++) | |
| for(size_t ii=0;replace[ii];ii++) | |
| if(str[i]==replace[ii]) | |
| str[i]=with[ii]; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment