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

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

int atoi(const char *str)
{
	return (int)strtol(str, (char **)NULL, 10);
}