diff options
| author | Sadeep Madurange <smadurange@users.noreply.github.com> | 2021-11-19 21:43:05 +0800 |
|---|---|---|
| committer | Sadeep Madurange <smadurange@users.noreply.github.com> | 2021-11-19 21:43:05 +0800 |
| commit | 13e92a3c600e010757314e60a679dad2fb0149a9 (patch) | |
| tree | 233dd09bfcf543df53d733ce9de3a3f68ff19e4a /1 | |
| parent | ec5e3c0cfaf71b955cc8c664e185b5b73c4b0548 (diff) | |
| download | k&r-exercises-13e92a3c600e010757314e60a679dad2fb0149a9.tar.gz | |
Code formatting.
Diffstat (limited to '1')
| -rw-r--r-- | 1/16.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |
