1 /* 2 WCSSPN: size_t wcsspn (const wchar_t *ws1, const wchar_t *ws2); 3 */ 4 5 #define TST_FUNCTION wcsspn 6 7 #include "tsp_common.c" 8 #include "dat_wcsspn.c" 9 10 int tst_wcsspn(FILE * fp,int debug_flg)11tst_wcsspn (FILE *fp, int debug_flg) 12 { 13 TST_DECL_VARS (size_t); 14 wchar_t *ws1, *ws2; 15 16 TST_DO_TEST (wcsspn) 17 { 18 TST_HEAD_LOCALE (wcsspn, S_WCSSPN); 19 TST_DO_REC (wcsspn) 20 { 21 TST_GET_ERRET (wcsspn); 22 ws1 = TST_INPUT (wcsspn).ws1; 23 ws2 = TST_INPUT (wcsspn).ws2; /* external value: size WCSSIZE */ 24 ret = wcsspn (ws1, ws2); 25 26 if (debug_flg) 27 { 28 fprintf (stderr, "wcsspn: ret = %zu\n", ret); 29 } 30 31 TST_IF_RETURN (S_WCSSPN) 32 { 33 }; 34 } 35 } 36 37 return err_count; 38 } 39