From 429938fa67beef12eb348dec04d748ab58b00678 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sun, 29 Mar 2026 23:36:44 -0400 Subject: Banish itoa(), save 170 bytes. --- src/cmd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/cmd.c') diff --git a/src/cmd.c b/src/cmd.c index d208683..4ef28f2 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -11,6 +11,8 @@ /* A "command" is actually anything the user types, whether or not it starts with a / character. */ +extern void num_to_numbuf(unsigned int n); /* printnum.s */ + char *command, *arg1, *arg2, *arg3; static char *target; @@ -249,7 +251,7 @@ unsigned int read_rtclok(void) { } static void rtclok_to_numbuf(void) { - itoa(read_rtclok(), numbuf, 10); + num_to_numbuf(read_rtclok()); } void cmd_server_ping(void) { -- cgit v1.2.3