1b3e94a20d
From release 0.1.0 pre-patched archive. This includes all Red Bear modifications previously maintained as patches in local/patches/relibc/.
15 lines
616 B
C
15 lines
616 B
C
#include <inttypes.h>
|
|
#include <stdio.h>
|
|
#include <wchar.h>
|
|
|
|
int main(void) {
|
|
wchar_t *nptr;
|
|
wchar_t *endptr;
|
|
uintmax_t j;
|
|
int base = 10;
|
|
nptr = L"10110134932";
|
|
printf("nptr = `%ls`\n", nptr);
|
|
j = wcstoumax(nptr, &endptr, base);
|
|
printf("wcstoumax = %ju\n", j);
|
|
printf("Stopped scan at `%ls`\n", endptr);
|
|
}
|