Sha256: 891265d78d643167891d8edc56a3f776b2cef59c69c98b87e589da5e70b43cde

Contents?: true

Size: 181 Bytes

Versions: 8

Compression:

Stored size: 181 Bytes

Contents

#include <wchar.h>

wchar_t *wcsncpy(wchar_t *restrict d, const wchar_t *restrict s, size_t n)
{
	wchar_t *a = d;
	while (n && *s) n--, *d++ = *s++;
	wmemset(d, 0, n);
	return a;
}

Version data entries

8 entries across 8 versions & 1 rubygems

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