2 * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
3 * See the copyright notice in the ACK home directory, in the file "Copyright".
10 /* We do not use strtol here for backwards compatibility in behaviour on
14 atol(register const char *nptr
)
19 while (isspace(*nptr
)) nptr
++;
20 if (*nptr
== '+') nptr
++;
21 else if (*nptr
== '-') {
25 while (isdigit(*nptr
)) {
27 total
+= (*nptr
++ - '0');
29 return minus
? -total
: total
;