summaryrefslogtreecommitdiff
path: root/sys/src/libc/port/atol.c
blob: cf7270c6fba6d8fa19a7d058bc0b845b702ed5a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <u.h>
#include <libc.h>

long
atol(char *s)
{
	return strtol(s, nil, 10);
}

int
atoi(char *s)
{
	return strtol(s, nil, 10);
}