summaryrefslogtreecommitdiff
path: root/src/stdlib/strtoull.c
blob: 994eaba0ac6fd02ed1699646d183a0ff5eb70fa7 (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"

unsigned long long int strtoull(const char * restrict nptr, char ** restrict endptr, int base)
{
	unsigned long long int ret = 0;
	unsigned long long int max = ULLONG_MAX;
	unsigned long long int min = 0;

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

	#include "_strtoi.h"

	return ret;
}

/*
STDC(199901)
*/