summaryrefslogtreecommitdiff
path: root/src/stdlib/wcstombs.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-02-08 18:42:39 -0500
committerJakob Kaivo <jkk@ung.org>2019-02-08 18:42:39 -0500
commit7ef8a7379f7f7d09e71ccae2a0b688c3cd80423f (patch)
tree092ab0aed1769117fd7b28b8592f6f96b0e0d5af /src/stdlib/wcstombs.c
parent6acf19370e8adff79cd83b257d3f04aeaf2a59dd (diff)
merge sources into single tree
Diffstat (limited to 'src/stdlib/wcstombs.c')
-rw-r--r--src/stdlib/wcstombs.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/stdlib/wcstombs.c b/src/stdlib/wcstombs.c
new file mode 100644
index 00000000..3643a5a4
--- /dev/null
+++ b/src/stdlib/wcstombs.c
@@ -0,0 +1,25 @@
+#include <stdlib.h>
+
+/** convert wide character string to multibyte string **/
+
+size_t wcstombs(char * restrict s, const wchar_t * restrict pwcs, size_t n)
+{
+ (void)s; (void)pwcs; (void)n;
+ /* TODO */
+ return 0;
+}
+
+/***
+converts the wide character string ARGUMENT(pwcs) to a multibyte string, which
+is stored at ARGUMENT(s), beginning in the initial shift state. No more than
+ARGUMENT(n) bytes are written to ARGUMENT(s). Conversion stops after reaching
+a null wide character, which is converted and stored.
+***/
+
+/*
+UNDEFINED(The memory regions of ARGUMENT(s) and ARGUMENT(pwcs) overlap)
+LC_CTYPE
+RETURN_FAILURE(-1)
+RETURN_SUCCESS(the number of bytes modified, not counting any terminating null)
+STDC(1)
+*/