summaryrefslogtreecommitdiff
path: root/src/stdlib/mbstowcs_s.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdlib/mbstowcs_s.c')
-rw-r--r--src/stdlib/mbstowcs_s.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/stdlib/mbstowcs_s.c b/src/stdlib/mbstowcs_s.c
new file mode 100644
index 00000000..70ef0433
--- /dev/null
+++ b/src/stdlib/mbstowcs_s.c
@@ -0,0 +1,26 @@
+#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)
+*/