Advertisement
Anton0093

Задание_3_код

Oct 12th, 2020
2,074
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  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.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement