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/irc.c | |
| parent | 4ab26eee1dd329152cd2424b0851f2ce950f96bc (diff) | |
| download | fujinet-chat-429938fa67beef12eb348dec04d748ab58b00678.tar.gz | |
Banish itoa(), save 170 bytes.
Diffstat (limited to 'src/irc.c')
| -rw-r--r-- | src/irc.c | 17 |
1 files changed, 3 insertions, 14 deletions
@@ -133,19 +133,10 @@ static void print_ping_time(char *p) { scr_print_active("*** "); scr_print_active(msg_src); scr_print_active(" lag: "); - itoa(sec, numbuf, 10); - scr_print_active(numbuf); + scr_act_printnum(sec); scr_putc_active('.'); - itoa(frac, numbuf, 10); - scr_print_active(numbuf); + scr_act_printnum(frac); scr_putc_active('s'); - - /* - // for debugging: - scr_putc_active(' '); - itoa(pingtime, numbuf, 10); - scr_print_active(numbuf); - */ } static void do_server_pong(void) { @@ -679,12 +670,10 @@ static void irc_split_Lines(void) { } } -/* TODO: there needs to be a scr_printnum() */ void print_errnum(void) { extern unsigned char err; scr_print_current("Error #"); - itoa(err, numbuf, 10); - scr_print_current(numbuf); + scr_cur_printnum(err); } static void start_minute_timer() { |
