X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/8c69934299322c189e72259c2b31545c94697ea8..c576ad2674c37a1c63f004c71049998f38854c64:/sbr/read_line.c diff --git a/sbr/read_line.c b/sbr/read_line.c index c9167ab5..a6367de4 100644 --- a/sbr/read_line.c +++ b/sbr/read_line.c @@ -1,6 +1,19 @@ +/* read_line.c -- read a possibly incomplete line from stdin. + * + * This code is Copyright (c) 2017, by the authors of nmh. See the + * COPYRIGHT file in the root directory of the nmh distribution for + * complete copyright information. + */ + #include #include +#include "read_line.h" +/* + * Flush standard output, read a line from standard input into a static buffer, + * zero out the newline, and return a pointer to the buffer. + * On error, return NULL. + */ const char * read_line(void) {