aboutsummaryrefslogtreecommitdiff
path: root/src/cmd.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-03-29 23:36:44 -0400
committerB. Watson <urchlay@slackware.uk>2026-03-29 23:36:44 -0400
commit429938fa67beef12eb348dec04d748ab58b00678 (patch)
treedf59be6a9084f5e58675ef0333bb7ad7c3bb946b /src/cmd.c
parent4ab26eee1dd329152cd2424b0851f2ce950f96bc (diff)
downloadfujinet-chat-429938fa67beef12eb348dec04d748ab58b00678.tar.gz
Banish itoa(), save 170 bytes.
Diffstat (limited to 'src/cmd.c')
-rw-r--r--src/cmd.c4
1 files changed, 3 insertions, 1 deletions
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) {