text: #include <stdio.h>
  #include <stdlib.h>
  #include <unistd.h>
  #include <sys/wait.h>
  
  
  void child_function(int child_number);
  void father_function();
  
  int  main (int argc, char *argv[]) {
    int nb_of_processes, i_child, pid_child;
  
    /* Check that one parameter was provided */
    if (argc != 2) {
      printf(" Wrong usage, expected : %s number_of_processes ! \n", argv[0]);
      exit(2);
    }
  
    nb_of_processes = atoi (argv [1]);  /* conversion ascii -> integer */
  
    /* ----------------------------------------
    *  creation of children processes
    * ----------------------------------------
    */
    for ( i_child =1; i_child <= nb_of_processes  ; i_child++ ) {
      pid_child = fork();
      switch (pid_child) {
        case 0 :
        child_function(i_child); /* You have to write this function ... */
        break;
        case -1 :
        perror("Fork just failed !!!");
        exit(33);  /* exit in case an error occured */
      }
    }
  
    father_function();      /* You have to write this function ... */
  
    return 0;
  
  }
  
  void child_function(int child_number)
  {
  
  }
  
  void father_function()
  {
  
  }
  