projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
make pthread_create return EAGAIN on resource failure, as required by POSIX
[oweals/musl.git]
/
src
/
stdlib
/
wcstoull.c
1
#include <wchar.h>
2
#include <stdlib.h>
3
#include <inttypes.h>
4
#include <errno.h>
5
#include <limits.h>
6
7
unsigned long long wcstoull(const wchar_t *s, wchar_t **p, int base)
8
{
9
uintmax_t x = wcstoumax(s, p, base);
10
if (x > ULLONG_MAX) {
11
errno = ERANGE;
12
return ULLONG_MAX;
13
}
14
return x;
15
}