2 MBLEN: int mblen (char *s, size_t n)
5 #define TST_FUNCTION mblen
7 #include "tsp_common.c"
11 tst_mblen (FILE * fp, int debug_flg)
20 TST_HEAD_LOCALE (mblen, S_MBLEN);
23 TST_GET_ERRET (mblen);
24 s_flg = TST_INPUT (mblen).s_flg;
25 s_in = TST_INPUT (mblen).s;
26 n = TST_INPUT (mblen).n;
33 if (n == USE_MBCURMAX)
39 ret = mblen (s_in, n);
42 TST_IF_RETURN (S_MBLEN)
45 { /* state dependency */
47 { /* state-dependent */
50 /* non-zero: state-dependent encoding */
51 Result (C_SUCCESS, S_MBLEN, CASE_3, MS_PASSED);
56 Result (C_FAILURE, S_MBLEN, CASE_3,
57 "should be state-dependent encoding, "
58 "but the return value shows it is"
59 " state-independent");
64 { /* state-independent */
67 /* non-zero: state-dependent encoding */
68 Result (C_SUCCESS, S_MBLEN, CASE_3, MS_PASSED);
73 Result (C_FAILURE, S_MBLEN, CASE_3,
74 "should be state-independent encoding, "
75 "but the return value shows it is"