Skip to content

Instantly share code, notes, and snippets.

@Denommus
Created May 2, 2013 14:41
Show Gist options
  • Select an option

  • Save Denommus/5502670 to your computer and use it in GitHub Desktop.

Select an option

Save Denommus/5502670 to your computer and use it in GitHub Desktop.
Removing a character in C
#include <stdio.h>
#include <string.h>
int main() {
char a[] = "abcd";
memmove(a, a+1, 3);
a[3] = 0;
printf(a);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment