ul: use string printing function
Use of for loop and printing a string character by character is slower than to print whole string with single function. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
aa971f7d58
commit
67519cdd8f
|
@ -447,8 +447,7 @@ static void overstrike(void)
|
||||||
putwchar('\r');
|
putwchar('\r');
|
||||||
for (*cp = ' '; *cp == ' '; cp--)
|
for (*cp = ' '; *cp == ' '; cp--)
|
||||||
*cp = 0;
|
*cp = 0;
|
||||||
for (cp = lbuf; *cp; cp++)
|
fputws(lbuf, stdout);
|
||||||
putwchar(*cp);
|
|
||||||
if (hadbold) {
|
if (hadbold) {
|
||||||
putwchar('\r');
|
putwchar('\r');
|
||||||
for (cp = lbuf; *cp; cp++)
|
for (cp = lbuf; *cp; cp++)
|
||||||
|
@ -481,8 +480,7 @@ static void iattr(void)
|
||||||
}
|
}
|
||||||
for (*cp = ' '; *cp == ' '; cp--)
|
for (*cp = ' '; *cp == ' '; cp--)
|
||||||
*cp = 0;
|
*cp = 0;
|
||||||
for (cp = lbuf; *cp; cp++)
|
fputws(lbuf, stdout);
|
||||||
putwchar(*cp);
|
|
||||||
putwchar('\n');
|
putwchar('\n');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue