Skip to content

Instantly share code, notes, and snippets.

@alsamitech
Created August 18, 2021 07:21
Show Gist options
  • Save alsamitech/6332253dde4ce08a406bfc5a8085183b to your computer and use it in GitHub Desktop.
Save alsamitech/6332253dde4ce08a406bfc5a8085183b to your computer and use it in GitHub Desktop.
void str_clear(char* restrict str){
while(*str)*str++=0;
}
void str_set(char* restrict str, const char set){
while(*str)*str++=set;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment