working on it
This commit is contained in:
parent
56a6e78765
commit
35a88970c2
1094 changed files with 51093 additions and 51 deletions
15
05/musl-final/src/stdlib/wcstoul.c
Normal file
15
05/musl-final/src/stdlib/wcstoul.c
Normal file
|
@ -0,0 +1,15 @@
|
|||
#include <wchar.h>
|
||||
#include <stdlib.h>
|
||||
#include <inttypes.h>
|
||||
#include <errno.h>
|
||||
#include <limits.h>
|
||||
|
||||
unsigned long wcstoul(const wchar_t *s, wchar_t **p, int base)
|
||||
{
|
||||
uintmax_t x = wcstoumax(s, p, base);
|
||||
if (x > ULONG_MAX) {
|
||||
errno = ERANGE;
|
||||
return ULONG_MAX;
|
||||
}
|
||||
return x;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue