diff options
| author | Sadeep Madurange <smadurange@users.noreply.github.com> | 2022-01-28 18:53:50 +0800 |
|---|---|---|
| committer | Sadeep Madurange <smadurange@users.noreply.github.com> | 2022-01-28 18:53:50 +0800 |
| commit | 2f05e2fe7f82f1a7c8562712c6d6223d82ccc1c2 (patch) | |
| tree | 739016f51cf29a7906bff1556731c7eb529f4433 /5 | |
| parent | 7823a3fd030d65d6a889cef2a2ebf4ef82d9998d (diff) | |
| download | k&r-exercises-2f05e2fe7f82f1a7c8562712c6d6223d82ccc1c2.tar.gz | |
5.11
Diffstat (limited to '5')
| -rw-r--r-- | 5/11.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -97,7 +97,7 @@ void entab(char *s, char *t, int *tablist, int tablistc) { if (s[i] != ' ') t[j++] = s[i]; else { - for (k = i; k < i + TABSIZE && s[k] != 0; k++) + for (k = i; k < i + TABSIZE && s[k] == ' '; k++) ; if (k == i + TABSIZE - 1) { t[j++] = '\t'; |
