daily pastebin goal
61%
SHARE
TWEET

Untitled

a guest Mar 22nd, 2019 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.                     char *new_file_path = malloc(strlen(file_from_list_path[buff_ind]) + 20);
  2.                     sprintf(new_file_path, "%s%s", file_from_list_path[buff_ind], get_time(last_modification));
  3.                     int proc = fork();
  4.                     if(proc == 0){
  5.                         execl("/bin/cp", "cp", file_from_list_path[buff_ind], new_file_path, (char *) 0);
  6.                         exit(-1);
  7.                     }else{
  8.                         waitpid(proc,NULL,0);
  9.                     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top