aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-25 17:55:02 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-25 17:55:02 +0100
commit0a0c42691503f7a516994632522027e5793b4935 (patch)
treeb1db188ed19164871b134af8415b936c08700bb8 /FICS
parent900f5171c548754146aba9a4d6322a482d853d1e (diff)
Reformatted alphastring()
Diffstat (limited to 'FICS')
-rw-r--r--FICS/utils.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/FICS/utils.c b/FICS/utils.c
index 423f6ff..4d20046 100644
--- a/FICS/utils.c
+++ b/FICS/utils.c
@@ -525,18 +525,16 @@ PUBLIC int safestring(char *str)
return 1;
}
-PUBLIC int alphastring(char *str)
+PUBLIC int
+alphastring(char *str)
{
- int i;
-
- if (!str)
- return 1;
- for (i = 0; str[i]; i++) {
- if (!isalpha(str[i])) {
- return 0;
- }
- }
- return 1;
+ if (!str)
+ return 1;
+ for (int i = 0; str[i]; i++) {
+ if (!isalpha(str[i]))
+ return 0;
+ }
+ return 1;
}
PUBLIC int