aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-25 17:52:45 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-25 17:52:45 +0100
commit900f5171c548754146aba9a4d6322a482d853d1e (patch)
treee8606a57801506bc160b8f883ab772a62aa38c3e /FICS
parent274bc8b1f4b180c75714447303d922249edf8bde (diff)
Reformatted printablestring()
Diffstat (limited to 'FICS')
-rw-r--r--FICS/utils.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/FICS/utils.c b/FICS/utils.c
index fab43fd..423f6ff 100644
--- a/FICS/utils.c
+++ b/FICS/utils.c
@@ -539,17 +539,16 @@ PUBLIC int alphastring(char *str)
return 1;
}
-PUBLIC int printablestring(char *str)
+PUBLIC int
+printablestring(char *str)
{
- int i;
-
- if (!str)
- return 1;
- for (i = 0; str[i]; i++) {
- if ((!isprint(str[i])) && (str[i] != '\t') && (str[i] != '\n'))
- return 0;
- }
- return 1;
+ if (!str)
+ return 1;
+ for (int i = 0; str[i]; i++) {
+ if (!isprint(str[i]) && str[i] != '\t' && str[i] != '\n')
+ return 0;
+ }
+ return 1;
}
PUBLIC char *