2005-02-21 Alan Modra <amodra@bigpond.net.au>
[glibc/history.git] / localedata / tests-mbwc / tst_wctob.c
blob2377daf594979f3cb9dd802abcbcacea68a423be
1 /*-------------------------------------------------------------------------------------*/
2 /* WCTOB: int wctob( wint_t wc ) */
3 /*-------------------------------------------------------------------------------------*/
5 #define TST_FUNCTION wctob
7 #include "tsp_common.c"
8 #include "dat_wctob.c"
10 int
11 tst_wctob (FILE * fp, int debug_flg)
13 TST_DECL_VARS (int);
14 wchar_t wc;
16 TST_DO_TEST (wctob)
18 TST_HEAD_LOCALE (wctob, S_WCTOB);
19 TST_DO_REC (wctob)
21 TST_GET_ERRET (wctob);
22 wc = TST_INPUT (wctob).wc;
23 ret = wctob (wc);
25 if (debug_flg)
27 fprintf (stderr, "tst_wctob : [ %d ] ret = %d\n", rec + 1, ret);
30 TST_IF_RETURN (S_WCTOB)
36 return err_count;