introduce bb_putchar(). saves ~1800 on uclibc (less on glibc).
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user