2 TOWCTRANS: wint_t towctrans (wint_t wc, wctrans_t desc);
5 #define TST_FUNCTION towctrans
7 #include "tsp_common.c"
8 #include "dat_towctrans.c"
12 tst_towctrans (FILE *fp
, int debug_flg
)
14 TST_DECL_VARS (wint_t);
19 TST_DO_TEST (towctrans
)
21 TST_HEAD_LOCALE (towctrans
, S_TOWCTRANS
);
22 TST_DO_REC (towctrans
)
24 TST_GET_ERRET (towctrans
);
25 wc
= TST_INPUT (towctrans
).wc
;
26 ts
= TST_INPUT (towctrans
).ts
;
31 ret
= towctrans (wc
, wto
);
36 fprintf (stdout
, "towctrans() [ %s : %d ] ret = 0x%x\n",
38 fprintf (stdout
, " errno = %d\n",
42 TST_IF_RETURN (S_TOWCTRANS
)
46 result (fp
, C_SUCCESS
, S_TOWCTRANS
, locale
, rec
+1,
47 seq_num
+1, 3, MS_PASSED
);
52 result (fp
, C_FAILURE
, S_TOWCTRANS
, locale
, rec
+1,
54 "the function returned 0, but should be non-zero");