qfedu-linux-advanced-level/day3/d10.c

11 lines
225 B
C

#include <stdio.h>
#include <stdlib.h>
int main(int argc, char const *argv[])
{
// int ret = system("ls -l");
// int ret = system("./d7");
int ret = system(argv[1]);
printf("ret = %d\n", ret);
return 0;
}