/* File: local.c

   A program to demonstrate local variables.
*/

#include <stdio.h>
#include "simpio.h"
#include "genlib.h"

/* Function Prototypes */
void red_fish(int) ;
void blue_fish(int) ;

main() {
  int n ;

  n = 17 ;
  printf("Before calling red_fish, n = %d\n", n) ;
  red_fish(32) ;
  printf("After calling red_fish, n = %d\n", n) ;

  printf("\n") ;

  printf("Before calling blue_fish, n = %d\n", n) ;
  blue_fish(n) ;
  printf("After calling blue_fish, n = %d\n", n) ;
}

void red_fish (int i) {
   int n ;

   i = 2 ;
   n = 14 ;
   printf("   In red_fish, i = %d, n = %d\n", i, n) ;
   return ;
}

void blue_fish (int n) {

   n = 72 ;
   printf("   In blue_fish, n = %d\n", n) ;
   return ;
}
