//main.c #include <stdio.h> void getPutChar(); main() { getPutChar(); } void getPutChar() { char c; while((int)(c=getchar())!=27) { putchar(c); } }
Compile
cc main.c -o h1
Run
./h1
//main.c #include <stdio.h> main() { getPutChar(); } void getPutChar() { char c; while((c=getchar())!=27) { putchar(c); } }
Compile
cc main.c -o h1
Run
./h1
main() { printChar(); } void printChar() { int c; c=getchar(); while(c!=27) { putchar(c); c=getchar(); } }