20 lines
398 B
C
20 lines
398 B
C
#include <stdio.h> /* fprintf(3), stderr, stdin, stdout */
|
|
#if !defined EX_OK || !defined EX_USAGE
|
|
# include <sysexits.h>
|
|
#endif
|
|
|
|
int main(int argc, char *argv[]){
|
|
CHARACTER c; /* iterating over character stream */
|
|
|
|
if(argc > 1){
|
|
fprintf(stderr, "Usage: %s\n", argv[0]);
|
|
return EX_USAGE;
|
|
}
|
|
|
|
|
|
while((c = GETC(stdin)) != ENDOFFILE)
|
|
PUTC(ISVALID(c) ? CONV(c) : c, stdout);
|
|
|
|
return EX_OK;
|
|
}
|