home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GEMini Atari
/
GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso
/
zip
/
mint
/
mntlib16.lzh
/
MNTLIB16
/
ATOL.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-08-03
|
397b
|
26 lines
/* As suggested by Harbison & Steele */
#include <stddef.h>
#include <stdlib.h>
#include <assert.h>
#ifdef __STDC__
long strtol(const char *, char **, int);
#else
extern long strtol();
#endif
int atoi(str)
const char *str;
{
assert ((str != NULL));
return (int) strtol(str, (char **)0, 10);
}
long atol(str)
const char *str;
{
assert ((str != NULL));
return strtol(str, (char **)0, 10);
}