repos
/
plan9port.git
/
tree
/
src
/
lib9
/ atoi.c
Blob
Date:
Fri Apr 2 22:57:49 2004 UTC
Message:
Change _p9strsig to return nil if tmp==nil. Add atoi, atol, atoll. These versions call strtol/strtoll with base==0. The Unix versions use base==10.
Actions:
History
|
Blame
|
Raw File
1
#include <u.h>
2
#include <libc.h>
3
4
int
5
atoi(char *s)
6
{
7
return strtol(s, 0, 0);
8
}
9