Skip to content

Instantly share code, notes, and snippets.

@alsamitech
Created June 28, 2021 03:47
Show Gist options
  • Select an option

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

Select an option

Save alsamitech/fb2b8f1b2cab3632dce2278a67cf8dc5 to your computer and use it in GitHub Desktop.
void str_replace(char* str, char replace, char with){
for(size_t i=0;str[i];i++)
if(str[i]==replace) str[i]=with;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment