made a lot of changes

This commit is contained in:
eck
1989-12-18 15:14:14 +00:00
parent 2f92b46a9d
commit e00f89ea6f
21 changed files with 958 additions and 218 deletions

View File

@@ -5,9 +5,14 @@
/* $Header$ */
#include <stdlib.h>
#include <errno.h>
int
atoi(const char *nptr)
{
return (int)strtol(nptr, (char **)NULL, 10);
int i, e = errno;
i = (int)strtol(nptr, (char **)NULL, 10);
errno = e;
return i;
}