From 1a69cfa4adeb61b27b572ea8a2e75f6c31013e0e Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Sun, 10 Mar 2024 14:40:02 +0300 Subject: [PATCH] freadln.c: add a comment to indicate initial length --- c-programming/io/freadln.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c-programming/io/freadln.c b/c-programming/io/freadln.c index 5e54bf4..80888da 100644 --- a/c-programming/io/freadln.c +++ b/c-programming/io/freadln.c @@ -33,7 +33,7 @@ int freadln(FILE* f, char** output, size_t* length_out) { // make sure a prompt is displayed fflush(stdout); - freadln_length_type length = 0; + freadln_length_type length = 0; // initial length *output = malloc((length + 1) * sizeof(char)); if (*output == NULL)