[ create a new paste ] login | about

Link: http://codepad.org/6ILncgay    [ raw code | output | fork ]

C, pasted on Aug 11:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdio.h>

int main(){

    int ch = 0;
    
    setvbuf( stdin,  NULL, _IONBF, 0 );
    setvbuf( stdout, NULL, _IONBF, 0 );

    while( ch != EOF && ch != '\n') {
        ch = fgetc(stdin);
        fputc( ch, stdout );
    }
    return 0;
}


Output:
1


Create a new paste based on this one


Comments: