made a lot of changes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user