diff options
Diffstat (limited to 'man/man3/getline.3')
| -rw-r--r-- | man/man3/getline.3 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/man/man3/getline.3 b/man/man3/getline.3 index 9b7be6d760..e1c5b0d637 100644 --- a/man/man3/getline.3 +++ b/man/man3/getline.3 @@ -149,7 +149,7 @@ main(int argc, char *argv[]) { FILE *stream; char *line = NULL; - size_t len = 0; + size_t size = 0; ssize_t nread; \& if (argc != 2) { @@ -163,7 +163,7 @@ main(int argc, char *argv[]) exit(EXIT_FAILURE); } \& - while ((nread = getline(&line, &len, stream)) != \-1) { + while ((nread = getline(&line, &size, stream)) != \-1) { printf("Retrieved line of length %zd:\[rs]n", nread); fwrite(line, nread, 1, stdout); } |
