diff options
Diffstat (limited to 'src/stdlib/wcstombs.c')
-rw-r--r-- | src/stdlib/wcstombs.c | 25 |
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) +*/ |