2 WCSCHR: wchar_t *wcschr (wchar_t *ws, wchar_t wc);
5 #define TST_FUNCTION wcschr
7 #include "tsp_common.c"
8 #include "dat_wcschr.c"
11 tst_wcschr (FILE * fp
, int debug_flg
)
13 TST_DECL_VARS (wchar_t *);
18 TST_HEAD_LOCALE (wcschr
, S_WCSCHR
);
21 TST_GET_ERRET (wcschr
);
22 ws
= TST_INPUT (wcschr
).ws
; /* external value: size WCSSIZE */
23 wc
= TST_INPUT (wcschr
).wc
;
24 ret
= wcschr (ws
, wc
);
30 fprintf (stderr
, "wcschr: ret = 0x%lx\n",
31 (unsigned long int) *ret
);
35 fprintf (stderr
, "wcschr: ret = NULL pointer\n");
39 TST_IF_RETURN (S_WCSCHR
)
45 fprintf (stderr
, "*** Warning *** tst_wcschr: "
46 "set ret_flg=1 to check NULL return value\n");
50 Result (C_INVALID
, S_WCSCHR
, CASE_3
, "(check the test data) "
51 "set ret_flg=1 to check NULL return value");
57 Result (C_SUCCESS
, S_WCSCHR
, CASE_3
, MS_PASSED
);
62 Result (C_FAILURE
, S_WCSCHR
, CASE_3
,
63 "the returned address of the string seems to be wrong");