Mention more bugs which are fixed.
[glibc.git] / localedata / tests-mbwc / tst_wcscmp.c
blob594682ce9dfe0e89851dc701ab363c203c0bc797
1 /*
2 WCSCMP: int wcscmp (const wchar_t *ws1, const wchar_t *ws2);
3 */
5 #define TST_FUNCTION wcscmp
7 #include "tsp_common.c"
8 #include "dat_wcscmp.c"
11 int
12 tst_wcscmp (FILE * fp, int debug_flg)
14 TST_DECL_VARS (int);
15 wchar_t *ws1, *ws2;
17 TST_DO_TEST (wcscmp)
19 TST_HEAD_LOCALE (wcscmp, S_WCSCMP);
20 TST_DO_REC (wcscmp)
22 TST_GET_ERRET (wcscmp);
23 ws1 = TST_INPUT (wcscmp).ws1;
24 ws2 = TST_INPUT (wcscmp).ws2;
25 ret = wcscmp (ws1, ws2);
26 ret = (ret > 0 ? 1 : ret < 0 ? -1 : 0);
28 if (debug_flg)
30 fprintf (stderr, "tst_wcscmp: ret = %d\n", ret);
33 TST_IF_RETURN (S_WCSCMP)
39 return err_count;