gawk

[old] Sed-like interface to the Gopher protocol
Log | Files | Refs | LICENSE

commit b72285a2f9c8d7be97f8ba0d96c0f3b9c282b840
parent eff80f02f6b491f26a16937bba2bfec5f43ff763
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date:   Thu, 24 Dec 2020 01:03:04 -0800

Only number non-informational types in cprintn()

Diffstat:
Mmain.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/main.c b/main.c @@ -455,7 +455,9 @@ cprint(int argc, const char **argv, int i, const char **s) int cprintn(int argc, const char **argv, int i, const char **s) { - printf("%4d", i); + if (**s != 'i') + printf("%4d", i); + else printf(" "); return cprint(argc, argv, i, s); }