diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-05-09 13:29:12 +0200 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-05-09 13:29:12 +0200 |
commit | 8dedd768c6c200923e9a3cf325e63182cd14cd7d (patch) | |
tree | d93577ad7489f29a28ba1190a9de49a2e7d1ee25 | |
parent | 2ef4007974b9fa66244ee2ca8c58fb59026477d5 (diff) |
Reformatted strcmpwild()
-rw-r--r-- | FICS/adminproc.c | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/FICS/adminproc.c b/FICS/adminproc.c index f03ad7f..9bc570d 100644 --- a/FICS/adminproc.c +++ b/FICS/adminproc.c @@ -421,19 +421,21 @@ com_anews(int p, param_list param) return COM_OK; } -PUBLIC int strcmpwild(char *mainstr, char *searchstr) +PUBLIC int +strcmpwild(char *mainstr, char *searchstr) { - int i; - - if (strlen(mainstr) < strlen(searchstr)) - return 1; - for (i = 0; i < strlen(mainstr); i++) { - if (searchstr[i] == '*') - return 0; - if (mainstr[i] != searchstr[i]) - return 1; - } - return 0; + int i; + + if (strlen(mainstr) < strlen(searchstr)) + return 1; + for (i = 0; i < strlen(mainstr); i++) { + if (searchstr[i] == '*') + return 0; + if (mainstr[i] != searchstr[i]) + return 1; + } + + return 0; } /* |