summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/atol.c
blob: 81bbbf824c21124b27c66af45f8e5797b5f15a99 (plain)
1
2
3
4
5
6
7
8
#include "stddef.h" // for NULL

#include <stdlib.h> // for strtol, atol

long atol(const char *nptr)
{
	return strtol(nptr, (char **)NULL, 10);
}