Listing 1

"print.h"

enum e_print_font {PRINT_NORMAL, PRINT_BOLD, PRINT_ITALIC};

int pr_set_format(e_print_font print_font);
int pr_output_string(char * string);
/* Other prototypes */

"pr_sub.c"

static global e_print_font current_print_font;
  /* For communication */

int pr_set_format(e_print_font print_font)
  {
  current_print_font = print_font;
  /* Maybe a bit of other stuff */
  }

int pr_output_string(char *string)
  {
  switch(current_print_font)
    {
  case PRINT_NORMAL:
    /* Set to normal */
    break;
  case PRINT_BOLD:
    /* Set to bold */
    break;    case PRINT_ITALIC:
    /* Set to italic */
    break;
    }
  /* print the string */
  ...
  }

/* End of File */