$ cat shell.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void sh(char *);
int main()
{
void sh(char *cmd)
int num;
num = system(cmd);
}
$ gcc shell.c
shell.c: In function `sh':
shell.c:9: parse error before "num"
shell.c:8: parm types given both in parmlist and separately
$
What do I do to correct this error??