From 4daad9004d8f07991516970a1cbd77756fae7041 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 27 Sep 2007 10:20:47 +0000 Subject: introduce bb_putchar(). saves ~1800 on uclibc (less on glibc). --- miscutils/strings.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'miscutils/strings.c') diff --git a/miscutils/strings.c b/miscutils/strings.c index 835880214..b7f5a0b57 100644 --- a/miscutils/strings.c +++ b/miscutils/strings.c @@ -56,7 +56,7 @@ int strings_main(int argc, char **argv) c = fgetc(file); if (isprint(c) || c == '\t') { if (count > n) { - putchar(c); + bb_putchar(c); } else { string[count] = c; if (count == n) { @@ -72,7 +72,7 @@ int strings_main(int argc, char **argv) } } else { if (count > n) { - putchar('\n'); + bb_putchar('\n'); } count = 0; } -- cgit v1.2.3