Mega Code Archive

 
Categories / C / Code Snippets
 

Copy bytes to buffer from buffer how to use memmove

#include <stdio.h> #include <string.h> int main () { char str[] = "I am Superman"; memmove (str + 20, str + 15,11); puts (str); return 0; }