Remove gets declaration
[glibc.git] / localedata / tests-mbwc / tst_iswctype.c
blob3e79e092dfe690eb3327cf900fc0083beeac3d1e
1 /*
2 ISWCTYPE: int iswctype (wint_t wc, wctype_t desc);
3 */
5 #define TST_FUNCTION iswctype
7 #include "tsp_common.c"
8 #include "dat_iswctype.c"
11 int
12 tst_iswctype (FILE *fp, int debug_flg)
14 TST_DECL_VARS (int);
15 wint_t wc;
16 const char *ts;
18 TST_DO_TEST (iswctype)
20 TST_HEAD_LOCALE (iswctype, S_ISWCTYPE);
21 TST_DO_REC (iswctype)
23 TST_GET_ERRET (iswctype);
24 wc = TST_INPUT (iswctype).wc;
25 ts = TST_INPUT (iswctype).ts;
26 ret = iswctype (wc, wctype (ts));
27 TST_SAVE_ERRNO;
28 if (debug_flg)
30 fprintf (stdout, "iswctype() [ %s : %d ] ret = %d\n",
31 locale, rec+1, ret);
34 TST_IF_RETURN (S_ISWCTYPE)
36 if (ret != 0)
38 result (fp, C_SUCCESS, S_ISWCTYPE, locale, rec+1,
39 seq_num+1, 3, MS_PASSED);
41 else
43 err_count++;
44 result (fp, C_FAILURE, S_ISWCTYPE, locale, rec+1,
45 seq_num+1, 3,
46 "the function returned 0, but should be non-zero");
52 return err_count;