Skip to content

Instantly share code, notes, and snippets.

@mrcat323
Created January 9, 2020 17:55
Show Gist options
  • Save mrcat323/00e8530509fd56930ff2dbc6a4e9d8fb to your computer and use it in GitHub Desktop.
Save mrcat323/00e8530509fd56930ff2dbc6a4e9d8fb to your computer and use it in GitHub Desktop.
Emptying array. Character array
void emptyCharArray(char s[], int length)
{
for (int n = length; n > 0; --n)
s[n] = 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment