tst_wctob.c 742 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*-------------------------------------------------------------------------------------*/
  2. /* WCTOB: int wctob( wint_t wc ) */
  3. /*-------------------------------------------------------------------------------------*/
  4. #define TST_FUNCTION wctob
  5. #include "tsp_common.c"
  6. #include "dat_wctob.c"
  7. int
  8. tst_wctob (FILE * fp, int debug_flg)
  9. {
  10. TST_DECL_VARS (int);
  11. wchar_t wc;
  12. TST_DO_TEST (wctob)
  13. {
  14. TST_HEAD_LOCALE (wctob, S_WCTOB);
  15. TST_DO_REC (wctob)
  16. {
  17. TST_GET_ERRET (wctob);
  18. wc = TST_INPUT (wctob).wc;
  19. ret = wctob (wc);
  20. if (debug_flg)
  21. {
  22. fprintf (stderr, "tst_wctob : [ %d ] ret = %d\n", rec + 1, ret);
  23. }
  24. TST_IF_RETURN (S_WCTOB)
  25. {
  26. };
  27. }
  28. }
  29. return err_count;
  30. }