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