summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api/process/io/main.c
blob: a3d95fe12afe9cfb75f98a88710497926366b91e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdio.h>

int main(int argc, char const *argv[]) {
    printf("Hello world.\n");
    char line[100];
    int count = 1;
    while (fgets(line, sizeof(line), stdin)) { // Reading from stdin...
        fprintf(stderr, "input line=>%d\n", count++);
    }

    printf("Exiting now\n");
}
OpenPOWER on IntegriCloud