char *foo = "blahblahblah"; int i; for (i = 2; i < strlen(foo); i++) { foo[i] = foo[i+1]; } printf("%s\n", foo);