Guest User

Untitled

a guest
Dec 3rd, 2019
85
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int len1 = len/2;
  2. int len2 = len-len1;
  3. char *fhalf = malloc(len1+1);
  4. memset(fhalf,0,len1+1);
  5. memcpy(fhalf,argv[1],len1);
  6. char *shalf = malloc(len2+1);
  7. memset(shalf,0,len2+1);
  8. memcpy(shalf,argv[1]+len1,len2);
RAW Paste Data