projects
/
cProgLang
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e584a99
)
Imporved 1-13
author
Cian Bagshaw
<cian@cianb.xyz>
Thu, 4 May 2023 18:22:53 +0000
(19:22 +0100)
committer
Cian Bagshaw
<cian@cianb.xyz>
Thu, 4 May 2023 18:22:53 +0000
(19:22 +0100)
Replaced some printf calls with putchar
1/13.c
patch
|
blob
|
history
diff --git
a/1/13.c
b/1/13.c
index
dc8de45
..
53da9c3
100644
(file)
--- a/
1/13.c
+++ b/
1/13.c
@@
-28,7
+28,7
@@
int main () {
}
while (lngst--) { /* for each count */
printf("%2.d|", lngst+1); /* length */
- while (count[lngst]--) p
rintf("#");
/* count (bar) */
- p
rintf("\n");
/* newline */
+ while (count[lngst]--) p
utchar('#');
/* count (bar) */
+ p
utchar('\n');
/* newline */
}
}