Last active
October 22, 2016 22:36
-
-
Save aaronryank/c72ee2311872934e9366f778b0598425 to your computer and use it in GitHub Desktop.
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 strstrip(int x, char *buf) | |
{ | |
int i, j; | |
for (i = 0; i < x; i++) { | |
for (j = 0; buf[j+1] != '\0'; j++) | |
buf[j] = buf[j+1]; | |
buf[j] = '\0'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment