Anton0093

Задание_3_код

Oct 12th, 2020
867
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <sys/types.h>
  2. #include <unistd.h>
  3. #include <stdio.h>
  4. #include <math.h>
  5.  
  6. int main(int argc, char * argv[]) {
  7.  
  8.     char *args[] = {"Hello", NULL};
  9.    
  10.     printf("PID: %d\n", getpid());
  11.    
  12.     execv("./1", args);
  13.     return 0;
  14. }
  15.  
RAW Paste Data