#include <afsconfig.h>
#include <afs/param.h>
-RCSID
- ("$Header$");
#include <string.h>
#ifdef HAVE_STDLIB_H
negative = 0;
/* skip over leading spaces */
- for (; tc = *as; as++) {
+ for (tc = *as; tc !='\0'; as++, tc = *as) {
if (tc != ' ' && tc != '\t')
break;
}
base = 10;
/* compute the # itself */
- for (; tc = *as; as++) {
+ for (tc = *as; tc !='\0'; as++, tc = *as) {
if (!ismeta(tc, base))
return -1;
total *= base;
total = 0; /* initialize things */
/* skip over leading spaces */
- for (; tc = *as; as++) {
+ for (tc = *as; tc !='\0'; as++, tc = *as) {
if (tc != ' ' && tc != '\t')
break;
}
base = 10;
/* compute the # itself */
- for (;tc = *as; as++) {
+ for (tc = *as; tc !='\0'; as++, tc = *as) {
if (!ismeta(tc, base))
return -1;
total *= base;