Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <sys/types.h>
- #include <unistd.h>
- #include <stdio.h>
- #include <math.h>
- int main(int argc, char * argv[]) {
- char *args[] = {"Hello", NULL};
- printf("PID: %d\n", getpid());
- execv("./1", args);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement