scc

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

mbstowcs.c (206B)


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