Add atoi, atol, atoll. These versions call strtol/strtoll with base==0. The Unix versions use base==10.
9 lines
83 B
C
9 lines
83 B
C
#include <u.h>
|
|
#include <libc.h>
|
|
|
|
long
|
|
atol(char *s)
|
|
{
|
|
return strtol(s, 0, 0);
|
|
}
|
|
|