diff options
| author | B. Watson <urchlay@slackware.uk> | 2026-03-29 23:36:44 -0400 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2026-03-29 23:36:44 -0400 |
| commit | 429938fa67beef12eb348dec04d748ab58b00678 (patch) | |
| tree | df59be6a9084f5e58675ef0333bb7ad7c3bb946b /src/cmd.c | |
| parent | 4ab26eee1dd329152cd2424b0851f2ce950f96bc (diff) | |
| download | fujinet-chat-429938fa67beef12eb348dec04d748ab58b00678.tar.gz | |
Banish itoa(), save 170 bytes.
Diffstat (limited to 'src/cmd.c')
| -rw-r--r-- | src/cmd.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) { |
