2 WCSWIDTH: int wcswidth (const wchar_t *ws, size_t n);
5 #define TST_FUNCTION wcswidth
7 #include "tsp_common.c"
8 #include "dat_wcswidth.c"
11 tst_wcswidth (FILE *fp
, int debug_flg
)
17 TST_DO_TEST (wcswidth
)
19 TST_HEAD_LOCALE (wcswidth
, S_WCSWIDTH
);
22 TST_GET_ERRET (wcswidth
);
23 ws
= TST_INPUT (wcswidth
).ws
;
24 n
= TST_INPUT (wcswidth
).n
;
25 ret
= wcswidth (ws
, n
);
29 fprintf (stderr
, "wcswidth: [ %d ] : ret = %d\n", rec
+ 1, ret
);
32 TST_IF_RETURN (S_WCSWIDTH
)