From 16d0011d18a0dba1b77c335311a4408a10817c18 Mon Sep 17 00:00:00 2001 From: celso Date: Wed, 9 Nov 2022 14:10:05 -0300 Subject: [PATCH] eighteenth exercise --- 1-18.c | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 1-18.c diff --git a/1-18.c b/1-18.c new file mode 100644 index 0000000..062fc01 --- /dev/null +++ b/1-18.c @@ -0,0 +1,32 @@ +#include +#define MAXLINE 1000 + +int ggetline(char line[], int maxline){ + int c, i, j; + j = 0; + for(i=0; i 0){ + //NIGGER to visualize lack of trailing whitespace + printf("%sNIGGER\n", line); + } + return 0; +}