summaryrefslogtreecommitdiff
path: root/src/stdlib/strtoll.c
blob: ab5b3d9e33580c173c0b43616533297907deacd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <stdlib.h>
#include <ctype.h>
#include <limits.h>
#include <errno.h>
#include <string.h>
#include "_stdlib.h"

long long int strtoll(const char * restrict nptr, char ** restrict endptr, int base)
{
	long long int ret = 0;
	long long int max = LLONG_MAX;
	long long int min = LLONG_MIN;

	SIGNAL_SAFE(0);
	ASSERT_NOOVERLAP(nptr, strlen(nptr), endptr, sizeof(*endptr));

	#include "_strtoi.h"

	return ret;
}

/*
STDC(199901)
*/