fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4.  
  5. int main(void) {
  6. char contentSave2[180] = "abcdefg-this-is-a-test";
  7. printf("%s\n", contentSave2);
  8. memmove(contentSave2, contentSave2+8, strlen(contentSave2)-8+1);
  9. printf("%s\n", contentSave2);
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 2168KB
stdin
Standard input is empty
stdout
abcdefg-this-is-a-test
this-is-a-test