2 WCTRANS: wctrans_t wctrans (const char *charclass);
5 #define TST_FUNCTION wctrans
7 #include "tsp_common.c"
8 #include "dat_wctrans.c"
11 tst_wctrans (FILE * fp
, int debug_flg
)
13 TST_DECL_VARS (wctrans_t);
18 TST_HEAD_LOCALE (wctrans
, S_WCTRANS
);
21 TST_GET_ERRET (wctrans
);
22 class = TST_INPUT (wctrans
).class;
25 ret
= wctrans (class);
30 fprintf (stderr
, "tst_wctrans : [ %d ] ret = %ld\n", rec
+ 1,
32 fprintf (stderr
, " errno = %d\n", errno_save
);
35 TST_IF_RETURN (S_WCTRANS
)
39 Result (C_SUCCESS
, S_WCTYPE
, CASE_3
, MS_PASSED
);
44 Result (C_FAILURE
, S_WCTYPE
, CASE_3
,
45 "should return non-0, but returned 0");