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.
This commit is contained in:
rsc 2004-04-02 22:57:49 +00:00
parent 85117729d0
commit 3a9dccd76e
5 changed files with 32 additions and 0 deletions

9
src/lib9/atoll.c Normal file
View file

@ -0,0 +1,9 @@
#include <u.h>
#include <libc.h>
vlong
atoll(char *s)
{
return strtoll(s, 0, 0);
}