aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'FICS/utils.c')
-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