putchar instead of putc
authorHeiko Schlittermann <hs@schlittermann.de>
Wed, 12 Jan 2011 22:07:08 +0100
changeset 2 35178e8b7de3
parent 1 3b5b7a4bf446
child 3 2fdec3c1da6a
putchar instead of putc
bounds.c
--- a/bounds.c	Wed Jan 12 21:59:15 2011 +0100
+++ b/bounds.c	Wed Jan 12 22:07:08 2011 +0100
@@ -21,18 +21,18 @@
     // text bis end ausgeben
     for (step = &etext; step < &end; step++) {
 	printf("%p: ", step);
-	if (isalnum(*step)) putc(*step, stdout);
+	if (isalnum(*step)) putchar(*step);
 	else printf("<%02x>", *step);
-	puts("");
+	putchar('\n');
     }
 
     //alles nach end ausgeben:
     step = &end;
     while (1) {
 	printf("%p: ", step);
-	if (isalnum(*step)) putc(*step, stdout);
+	if (isalnum(*step)) putchar(*step);
 	else printf("<%02x>", *step);
-	puts("");
+	putchar('\n');
 	step++;
     }