Created
January 9, 2020 17:55
-
-
Save mrcat323/00e8530509fd56930ff2dbc6a4e9d8fb to your computer and use it in GitHub Desktop.
Emptying array. Character array
This file contains 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 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