aboutsummaryrefslogtreecommitdiff
path: root/src/ctype/wcswidth.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ctype/wcswidth.c')
-rw-r--r--src/ctype/wcswidth.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ctype/wcswidth.c b/src/ctype/wcswidth.c
index 5c8a5a4d..2356e33d 100644
--- a/src/ctype/wcswidth.c
+++ b/src/ctype/wcswidth.c
@@ -6,3 +6,11 @@ int wcswidth(const wchar_t *wcs, size_t n)
for (; n-- && *wcs && (k = wcwidth(*wcs)) >= 0; l+=k, wcs++);
return (k < 0) ? k : l;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif