blob: bb48b4c6fec4f798621d350bd3f8a6cd6eecc5e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include <stdio.h>
#include <stdlib.h>
int main()
{
int i;
char *line = NULL;
size_t len = 0;
while (getline(&line, &len, stdin) >= 0) {
if ( line[0] == '\n' ) printf("newline\n");
printf("%d\n", atoi(line));
}
}
|