Back to index

glibc  2.9
tst_wctob.c
Go to the documentation of this file.
00001 /*-------------------------------------------------------------------------------------*/
00002 /* WCTOB: int wctob( wint_t wc )                                             */
00003 /*-------------------------------------------------------------------------------------*/
00004 
00005 #define TST_FUNCTION wctob
00006 
00007 #include "tsp_common.c"
00008 #include "dat_wctob.c"
00009 
00010 int
00011 tst_wctob (FILE * fp, int debug_flg)
00012 {
00013   TST_DECL_VARS (int);
00014   wchar_t wc;
00015 
00016   TST_DO_TEST (wctob)
00017   {
00018     TST_HEAD_LOCALE (wctob, S_WCTOB);
00019     TST_DO_REC (wctob)
00020     {
00021       TST_GET_ERRET (wctob);
00022       wc = TST_INPUT (wctob).wc;
00023       ret = wctob (wc);
00024 
00025       if (debug_flg)
00026        {
00027          fprintf (stderr, "tst_wctob : [ %d ] ret = %d\n", rec + 1, ret);
00028        }
00029 
00030       TST_IF_RETURN (S_WCTOB)
00031       {
00032       };
00033     }
00034   }
00035 
00036   return err_count;
00037 }