|
Last change
on this file since 2036 was 2036, checked in by bird, 20 years ago |
|
Initial revision
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Author Date Id Revision
|
|
File size:
667 bytes
|
| Line | |
|---|
| 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
|
|---|
| 11 | tst_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 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.