scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

wcstombs.c (186B)


      1 #include <stdlib.h>
      2 #include <wchar.h>
      3 
      4 #undef wcstombs
      5 
      6 size_t
      7 wcstombs(char *restrict dest, const wchar_t *restrict src, size_t n)
      8 {
      9 	return wcsrtombs(dest, (void *) &src, n, NULL);
     10 }