This website works better with JavaScript.
Home
Explore
Help
Sign In
jmg
/
fbsdembdev
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
this should be faster. I forgot about sprintf.
main
John-Mark Gurney
5 years ago
parent
79f32b1a29
commit
5639885564
1 changed files
with
2 additions
and
3 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-3
box.sh
+ 2
- 3
box.sh
View File
@@ -8,9 +8,8 @@ maxline == 1 {
}
}
function printtop () {
function printtop () {
blank = ""
for (i = 0; i < maxlength + 4; i++)
blank = blank "*"
blank = sprintf("%*s", maxlength + 4, "")
gsub(" ", "*", blank)
printf("%s\n", blank)
printf("%s\n", blank)
}
}
Write
Preview
Loading…
Cancel
Save