summaryrefslogtreecommitdiff
path: root/src/inttypes/wcstoimax.c
blob: 12c9a85008ee3d472698aa614053f7c039b6fd0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <inttypes.h>

intmax_t wcstoimax(const wchar_t * restrict nptr, wchar_t ** restrict endptr, int base)
{
  /* like wcstoll */

  /* if > INTMAX_MAX */
  /* errno = ERANGE; */
  /* return INTMAX_MAX */

  /* if < INTMAX_MIN */
  /* errno = ERANGE; */
  /* return INTMAX_MIN; */

  /* if no conversion */
  return 0;
}

/*
STDC(199901)
*/