C
84
exec
Guest on 1st June 2022 01:32:08 AM
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/wait.h>
int
main(int argc, char *argv[])
{
int status;
printf("about to run program %s.\n", argv
[0]);
execve(argv[0], argv, 0);
}
Raw Paste
Login or Register to edit or fork this paste. It's free.