1/*
2 WCSLEN: size_t wcslen (const wchar_t *ws);
3*/
4
5#define TST_FUNCTION wcslen
6
7#include "tsp_common.c"
8#include "dat_wcslen.c"
9
10int
11tst_wcslen (FILE * fp, int debug_flg)
12{
13 TST_DECL_VARS (size_t);
14 wchar_t *ws;
15
16 TST_DO_TEST (wcslen)
17 {
18 TST_HEAD_LOCALE (wcslen, S_WCSLEN);
19 TST_DO_REC (wcslen)
20 {
21 TST_GET_ERRET (wcslen);
22 ws = TST_INPUT (wcslen).ws;
23 ret = wcslen (s: ws);
24 TST_IF_RETURN (S_WCSLEN)
25 {
26 };
27 }
28 }
29
30 return err_count;
31}
32

source code of glibc/localedata/tests-mbwc/tst_wcslen.c