diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2023-12-25 17:13:19 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2023-12-25 17:13:19 +0100 |
commit | 10090d2687c1f0ee2555ce0436e1c56671c33d70 (patch) | |
tree | f2affb05d1a570975b4c349c54ff194041688c03 /FICS | |
parent | 136e9c7cc0df39e222fcde12259fa69b7f44f967 (diff) |
Reformatted file_wplayer()
Diffstat (limited to 'FICS')
-rw-r--r-- | FICS/utils.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/FICS/utils.c b/FICS/utils.c index f335ab5..97887c3 100644 --- a/FICS/utils.c +++ b/FICS/utils.c @@ -778,16 +778,18 @@ PUBLIC int file_has_pname(char *fname, char *plogin) return 0; } -PUBLIC char *file_wplayer(char *fname) -{ - static char tmp[MAX_FILENAME_SIZE]; - char *ptr; - strcpy(tmp, fname); - ptr = rindex(tmp, '-'); - if (!ptr) - return ""; - *ptr = '\0'; - return tmp; +PUBLIC char * +file_wplayer(char *fname) +{ + char *ptr; + static char tmp[MAX_FILENAME_SIZE]; + + strcpy(tmp, fname); + + if ((ptr = rindex(tmp, '-')) == NULL) + return ""; + *ptr = '\0'; + return tmp; } PUBLIC char * |