From cf1b621628966dac71de3648217dee37fae4f068 Mon Sep 17 00:00:00 2001 From: Sebastian Hammer Date: Wed, 29 May 1996 10:05:01 +0000 Subject: [PATCH] Changed space criteria to support 8-bit characters --- util/readconf.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/util/readconf.c b/util/readconf.c index a890e08..b3a9204 100644 --- a/util/readconf.c +++ b/util/readconf.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: readconf.c,v $ - * Revision 1.1 1995-11-01 13:55:06 quinn + * Revision 1.2 1996-05-29 10:05:01 quinn + * Changed space criteria to support 8-bit characters + * + * Revision 1.1 1995/11/01 13:55:06 quinn * Minor adjustments * * Revision 1.2 1995/10/30 13:54:27 quinn @@ -21,6 +24,8 @@ #include +#define l_isspace(c) ((c) == '\t' || (c) == ' ') + int readconf_line(FILE *f, char *line, int len, char *argv[], int num) { char *p; @@ -41,12 +46,12 @@ int readconf_line(FILE *f, char *line, int len, char *argv[], int num) if (*p == '#') /* trailing comment */ break; argv[argc] = p; - while (*p && !isspace(*p)) + while (*p && !l_isspace(*p)) p++; if (*p) { *(p++) = '\0'; - while (*p && isspace(*p)) + while (*p && l_isspace(*p)) p++; } } -- 1.7.10.4