How to read a line from stdin, blocking until the newline is found?

Try this patch

char *line = NULL;
+size_t size;
+if (getline(&line, &size, stdin) == -1) {
-if (getline(&line, 0, stdin) == -1) {
    printf("No line\n");
} else {

Leave a Comment

techhipbettruvabetnorabahisbahis forumutaraftarium24eduseduedusedusedueduedusedusedusedu