Sha256: d566a44cd36402f1b0d04fcf33fed64fa84bb75c2ff5d80fb77da1b70f9589b7

Contents?: true

Size: 133 Bytes

Versions: 8

Compression:

Stored size: 133 Bytes

Contents

#include <wchar.h>

size_t wcsnlen(const wchar_t *s, size_t n)
{
	const wchar_t *z = wmemchr(s, 0, n);
	if (z) n = z-s;
	return n;
}

Version data entries

8 entries across 8 versions & 1 rubygems

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