#include
#include
int main(void)
{
char *cmd = “/bin/echo”;
char *args[] = { cmd, “ECS150”, NULL};
int ret;
printf(“Hi!\n”);
ret = execv(cmd, args);
printf(“Execv returned %d\n”, ret);
return 0;
}
#include
#include
int main(void)
{
char *cmd = “/bin/echo”;
char *args[] = { cmd, “ECS150”, NULL};
int ret;
printf(“Hi!\n”);
ret = execv(cmd, args);
printf(“Execv returned %d\n”, ret);
return 0;
}