1 /* public domain rewrite of strtol(3) */
6 strtol(const char *nptr
, char **endptr
, int base
)
16 result
= -strtoul(p
, endptr
, base
);
20 result
= strtoul(p
, endptr
, base
);
22 if (endptr
!= 0 && *endptr
== p
) {
23 *endptr
= (char *)nptr
;