diff options
| author | Sadeep Madurange <smadurange@users.noreply.github.com> | 2021-11-22 19:53:27 +0800 |
|---|---|---|
| committer | Sadeep Madurange <smadurange@users.noreply.github.com> | 2021-11-22 19:53:27 +0800 |
| commit | 6bdc8e7a1102b0536d6bdd7ae4d83b1f33b5784c (patch) | |
| tree | 343477d7ce2d1f9fc02c58b0654d7e95a6366da5 | |
| parent | 781c9738c34a22979e6e26fa3a8ad04fd37bdfd0 (diff) | |
| download | k&r-exercises-6bdc8e7a1102b0536d6bdd7ae4d83b1f33b5784c.tar.gz | |
1.23
| -rw-r--r-- | 1/23.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -32,7 +32,7 @@ int main(int argc, char *argv[]) { comment = NONE; // try not to add redundant line breaks. if (s[i - 1] != '\n') - s[i] = '\n'; + s[i++] = '\n'; } else if (comment == MULTILC && curr == '/' && prev == '*') { comment = NONE; } |
