summaryrefslogtreecommitdiffstats
path: root/1/16.c
diff options
context:
space:
mode:
Diffstat (limited to '1/16.c')
-rw-r--r--1/16.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/1/16.c b/1/16.c
index 81ec7e2..3d48946 100644
--- a/1/16.c
+++ b/1/16.c
@@ -37,7 +37,7 @@ int mgetline(char s[], int lim) {
if (c == '\n')
s[i++] = c;
-
+
s[i] = '\0';
return i;
@@ -45,6 +45,7 @@ int mgetline(char s[], int lim) {
void copy(char to[], char from[]) {
int i;
+
for (i = 0; (to[i] = from[i]) != '\0'; i++)
;
} \ No newline at end of file