2 ISWCTYPE: int iswctype (wint_t wc, wctype_t desc);
5 #define TST_FUNCTION iswctype
7 #include "tsp_common.c"
8 #include "dat_iswctype.c"
12 tst_iswctype (FILE *fp
, int debug_flg
)
18 TST_DO_TEST (iswctype
)
20 TST_HEAD_LOCALE (iswctype
, S_ISWCTYPE
);
23 TST_GET_ERRET (iswctype
);
24 wc
= TST_INPUT (iswctype
).wc
;
25 ts
= TST_INPUT (iswctype
).ts
;
26 ret
= iswctype (wc
, wctype (ts
));
30 fprintf (stdout
, "iswctype() [ %s : %d ] ret = %d\n",
34 TST_IF_RETURN (S_ISWCTYPE
)
38 result (fp
, C_SUCCESS
, S_ISWCTYPE
, locale
, rec
+1,
39 seq_num
+1, 3, MS_PASSED
);
44 result (fp
, C_FAILURE
, S_ISWCTYPE
, locale
, rec
+1,
46 "the function returned 0, but should be non-zero");