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

Version Path
webruby-0.2.7 modules/emscripten/system/lib/libc/musl/src/string/wcsdup.c
webruby-0.2.5 modules/emscripten/system/lib/libc/musl/src/string/wcsdup.c
webruby-0.2.4 modules/emscripten/system/lib/libc/musl/src/string/wcsdup.c
webruby-0.2.2 modules/emscripten/system/lib/libc/musl/src/string/wcsdup.c
webruby-0.2.1 modules/emscripten/system/lib/libc/musl/src/string/wcsdup.c
webruby-0.1.2 modules/emscripten/system/lib/libc/musl/src/string/wcsdup.c
webruby-0.1.1 modules/emscripten/system/lib/libc/musl/src/string/wcsdup.c
webruby-0.1.0 modules/emscripten/system/lib/libc/musl/src/string/wcsdup.c