aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-02-24 01:44:50 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-02-24 01:44:50 +1300
commit418a160d1d0c78583cd39eff59198ca6438275fb (patch)
tree53b6cf446983437625b407746c84c4a08f1672a4
parentNice POSIX makefile (diff)
downloadwtf8-418a160d1d0c78583cd39eff59198ca6438275fb.tar.gz
wtf8-418a160d1d0c78583cd39eff59198ca6438275fb.zip
Terser while loop
-rw-r--r--wtf8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wtf8.c b/wtf8.c
index 6f44dfd..40db322 100644
--- a/wtf8.c
+++ b/wtf8.c
@@ -57,7 +57,7 @@ void print_characters(char *s) {
* Print two spaces, and then the full character
*/
printf(" ");
- for (; c > 0; c--)
+ while (c--)
putchar(*s++);
}