Sha256: e9d1903d403c971fc31c7f5e88cd9fdbe8da33fcc481f477a67780ed5ea299b9
Contents?: true
Size: 214 Bytes
Versions: 8
Compression:
Stored size: 214 Bytes
Contents
#include <stdlib.h> #include <wchar.h> #include "libc.h" wchar_t *wcsdup(const wchar_t *s) { size_t l = wcslen(s); wchar_t *d = malloc((l+1)*sizeof(wchar_t)); if (!d) return NULL; return wmemcpy(d, s, l+1); }
Version data entries
8 entries across 8 versions & 1 rubygems