projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
make socketcall types common as they are same for all architectures
[oweals/musl.git]
/
src
/
ctype
/
wcswidth.c
1
#include <wchar.h>
2
3
int wcswidth(const wchar_t *wcs, size_t n)
4
{
5
int l=0, k=0;
6
for (; n-- && *wcs && (k = wcwidth(*wcs)) >= 0; l+=k, wcs++);
7
return (k < 0) ? k : l;
8
}