2 WCSCMP: int wcscmp (const wchar_t *ws1, const wchar_t *ws2);
5 #define TST_FUNCTION wcscmp
7 #include "tsp_common.c"
8 #include "dat_wcscmp.c"
12 tst_wcscmp (FILE * fp
, int debug_flg
)
19 TST_HEAD_LOCALE (wcscmp
, S_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);
30 fprintf (stderr
, "tst_wcscmp: ret = %d\n", ret
);
33 TST_IF_RETURN (S_WCSCMP
)