/* This progran is a replaced ment for the following script, which does not work on Suns as well as it does on other UNIXen sed 's/\&/\&/g s/\/\>/g s/\"/\"/g' */ #include main() { int ch; while( (ch=getchar())!=EOF){ switch(ch){ case '&': printf("&"); break; case '<': printf("<"); break; case '>': printf(">"); break; case '"': printf("""); break; default: putchar(ch); break; } } return 0; }