From 39604128b60d57391825cb66f5bd28f017f14f21 Mon Sep 17 00:00:00 2001 From: celso Date: Wed, 9 Nov 2022 07:19:41 -0300 Subject: [PATCH] fixed 1-17 being wrong and unfinished --- 1-17.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/1-17.c b/1-17.c index 824a9eb..ba8ab64 100644 --- a/1-17.c +++ b/1-17.c @@ -8,8 +8,9 @@ int ggetline(char line[], int maxline){ if(i0){ copy(longline, line); - printf("%s\n", longline); + if (len>80){ + printf("%s\n", longline); + } } return 0; }