Re: centering display
- Posted by ghaberek (admin) Mar 22, 2019
- 1740 views
petelomax said...
On a slightly more serious note,
printf(1,">%6s<\n",{"four"}) -- produces "> four<" printf(1,">%-6s<\n",{"four"}) -- produces ">four <"
Does anyone any have any suggestion/preference for a format string that would produce "> four <"?
(Obviously, there isn't one, but if I were to implement it what would feel right as the third alternative to "%6s" and "%-6s"? "%|6s"? "%=6s"?)
I'd recommend "%^6s" or "%+6s".
-Greg