Sha256: c42a12549231427ab5127fc3c8d38615fa50843b0b05ea3a15c91e6f9e21114e

Contents?: true

Size: 170 Bytes

Versions: 8

Compression:

Stored size: 170 Bytes

Contents

#include <wchar.h>

int wcswidth(const wchar_t *wcs, size_t n)
{
	int l=0, k=0;
	for (; n-- && *wcs && (k = wcwidth(*wcs)) >= 0; l+=k, wcs++);
	return (k < 0) ? k : l;
}

Version data entries

8 entries across 8 versions & 1 rubygems

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