/* procedure to print out integer array */

void print_array (a, first, last)
int *a;
int first;
int last;
{
   register int i;
   for (i = first; i < last; ++i) {
      printf ("%d ", a[i]);
      if (i > first && (i - first) % 20 == 0)
         printf ("\n");
   }
   printf ("\n");
}

/* procedure to print out character array */

void print_chars (a, first, last)
char *a;
int first;
int last;
{
   register int i;
   for (i = first; i < last; ++i)
      printf ("%d ", a[i]);
   printf ("\n");
}
