Mini-Unix/usr/source/iolib/system.c

Compare this file to the similar file:
Show the results in this format:

system(str)
 char *str;
{
int status;
  if(fork() == 0)
    execl("/bin/sh", "sh", "-c", str, 0);
  wait(&status);
  }