--- ray/src/common/words.c 1991/07/23 11:36:42 1.2 +++ ray/src/common/words.c 1991/07/30 13:47:29 1.4 @@ -69,13 +69,13 @@ char * fskip(s) /* skip float in string */ register char *s; { - register char *cp = s; + register char *cp; - while (isspace(*cp)) - cp++; - if (*cp == '-' || *cp == '+') - cp++; - s = cp; + while (isspace(*s)) + s++; + if (*s == '-' || *s == '+') + s++; + cp = s; while (isdigit(*cp)) cp++; if (*cp == '.') { @@ -107,7 +107,7 @@ char *s, *ds; register char *cp; cp = iskip(s); - return(cp != NULL && strchr(*cp, ds) != NULL); + return(cp != NULL && strchr(ds, *cp) != NULL); } @@ -127,5 +127,5 @@ char *s, *ds; register char *cp; cp = fskip(s); - return(cp != NULL && strchr(*cp, ds) != NULL); + return(cp != NULL && strchr(ds, *cp) != NULL); }