home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_09_10
/
9n10118a
< prev
next >
Wrap
Text File
|
1991-08-15
|
767b
|
38 lines
"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 */
...
}