#include #include 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)); } }