/* Program & Manual Copyright Julian H. Stacey, Munich */ #include "stdio.h" main() { int ch ; long line = 1 ; char html = 0 ; while ( ( ch = getchar() ) != EOF ) { switch ( ch ) { case '\n': putchar('\n'); line++ ; break ; case '<': if (html) fprintf(stderr,"Warning < line %ld\n",line); else { html = 1 ; } break ; case '>': if (!html) fprintf(stderr,"Warning > line %ld\n",line); else { html = 0 ; putchar(' '); /* seperate "Boldfont" */ } break ; default: if (!html) putchar(ch); break ; } } }