// copy stdin to stdout byte-by-byte using getchar() and putchar() // skipping whitespace and converting to uppercase // #include #include int main( void) { int c; while(1) { c = getchar(); if( c < 0) break; c = toupper(c); if( !isspace(c)) putchar(c); } }