/* debug.c
 * Various routines used in debugging.
 *
 * Peter Webb, Summer 1990.
 */

/* Package include files */

#include "types.h"      /* Package-wide type definitions */
#include "error.h"      /* Error codes */
#include "extern.h"     /* External routines and global variables */
#include "reformat.h"   /* Package-wide contants */
#include "window.h"

#include <stdio.h>

/* Print all of the strings in a NULL-terminated array of strings */

void PrintStrArray(array)
  char *array[];
{
  int i;
  
  printf("String Array:\n");
  for (i=0; array[i] != NULL; i++)
    printf("  %s\n", array[i]);
  printf("Number of items: %d\n", i);
}
