repos
/
plan9port.git
/
tree
/
src
/
lib9
/ atoll.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
vlong
5
atoll(char *s)
6
{
7
return strtoll(s, 0, 0);
8
}
9