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:
parent
85117729d0
commit
3a9dccd76e
5 changed files with 32 additions and 0 deletions
9
src/lib9/atoll.c
Normal file
9
src/lib9/atoll.c
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#include <u.h>
|
||||
#include <libc.h>
|
||||
|
||||
vlong
|
||||
atoll(char *s)
|
||||
{
|
||||
return strtoll(s, 0, 0);
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue