diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2023-12-25 17:00:19 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2023-12-25 17:00:19 +0100 |
commit | 276eac3a3585bc21c6c5170a026b48d6e6208179 (patch) | |
tree | 527f4799bd74874db4a52a81262f28d9047955be /FICS/utils.c | |
parent | f19581be0262de07a006bd5910610047b1d99dc2 (diff) |
Reformatted ratstr()
Diffstat (limited to 'FICS/utils.c')
-rw-r--r-- | FICS/utils.c | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/FICS/utils.c b/FICS/utils.c index 6fcd420..542638b 100644 --- a/FICS/utils.c +++ b/FICS/utils.c @@ -851,21 +851,22 @@ PUBLIC int file_exists(char *fname) return 1; } -PUBLIC char *ratstr(int rat) +PUBLIC char * +ratstr(int rat) { - static int on = 0; - static char tmp[20][10]; + static char tmp[20][10]; + static int on = 0; - if (on == 20) - on = 0; - if (rat) { - sprintf(tmp[on], "%4d", rat); - } else { - sprintf(tmp[on], "----"); + if (on == 20) + on = 0; + if (rat) { + sprintf(tmp[on], "%4d", rat); + } else { + sprintf(tmp[on], "----"); + } - } - on++; - return tmp[on - 1]; + on++; + return tmp[on - 1]; } PUBLIC char * |