summaryrefslogtreecommitdiff
path: root/src/stdlib/mbstowcs_s.c
blob: 8abab6e87327c44e832dd609dad03c8715c7a8e5 (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
25
26
27
28
29
30
31
#if 0

#include <stdlib.h>

/** convert multibyte string to wide character string **/
errno_t mbstowcs_s(size_t * restrict retval, wchar_t * restrict dst, rsize_t dstmax, const char * restrict src, rsize_t len)
{
	__C_EXT(1, 201112L);
}

/***
The fn(mbstowcs) function converts the string of multibyte characters arg(s)
to a string of wide characters, which are stored at arg(pwcs). No more than
arg(n) wide characters are stored at arg(pwcs). No further characters will
be converted after a null character, which is converted.
***/

/* UNSPECIFIED: - */
/* UNDEFINED: the memory regions of arg(s) and arg(pwcs) overlap */
/* IMPLEMENTATION: - */
/* LOCALE: LC_CTYPE */

/* RETURN(-1): an invalid multibyte character was encountered */
/* RETURN: the number of wide characters converted, not counting any terminating zero */

/*
CEXT1(201112)
*/


#endif