args3.c 197 B

123456789101112
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <unistd.h>
  4. #define PATH "./arg"
  5. int main()
  6. {
  7. char* arg[] = {"1 arg", "2 arg", "3 arg", NULL};
  8. execve(PATH, arg, NULL);
  9. return 0;
  10. }