diff options
Diffstat (limited to 'lldb/test/python_api/process/io/main.c')
-rw-r--r-- | lldb/test/python_api/process/io/main.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lldb/test/python_api/process/io/main.c b/lldb/test/python_api/process/io/main.c new file mode 100644 index 00000000000..a3d95fe12af --- /dev/null +++ b/lldb/test/python_api/process/io/main.c @@ -0,0 +1,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"); +} |