summaryrefslogtreecommitdiff
path: root/src/stdlib/wcstombs_s.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdlib/wcstombs_s.c')
-rw-r--r--src/stdlib/wcstombs_s.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/stdlib/wcstombs_s.c b/src/stdlib/wcstombs_s.c
new file mode 100644
index 00000000..b0a8980b
--- /dev/null
+++ b/src/stdlib/wcstombs_s.c
@@ -0,0 +1,28 @@
+#include "stdlib.h"
+
+/** convert wide character string to multibyte string **/
+errno_t wcstombs_s(size_t * restrict retval, char * restrict dst, rsize_t dstmax, const wchar_t * restrict src, rsize_t len)
+{
+ __C_EXT(1, 201112L);
+ /* TODO */
+ return 0;
+}
+
+/***
+The fn(wcstombs) function converts the wide character string arg(pwcs) to a
+multibyte string, which is stored at arg(s), beginning in the initial shift
+state. No more than arg(n) bytes are written to arg(s). Conversion stops
+after reaching a null wide character, which is converted and stored.
+***/
+
+/* UNSPECIFIED: - */
+/* UNDEFINED: the memory regions of arg(s) and arg(pwcs) overlap */
+/* IMPLEMENTATION: - */
+/* LOCALE: LC_CTYPE */
+
+/* RETURN(-1): a code was encountered which does not correspond to a valid multibyte character */
+/* RETURN: the number of bytes modified, not counting any terminating null */
+
+/*
+CEXT1(201112)
+*/