~ubuntu-branches/ubuntu/jaunty/belocs-locales-data/jaunty

« back to all changes in this revision

Viewing changes to localedata/tests-mbwc/tst_wcscspn.c

  • Committer: Bazaar Package Importer
  • Author(s): Denis Barbier
  • Date: 2005-05-17 22:09:38 UTC
  • Revision ID: james.westby@ubuntu.com-20050517220938-814x2iu6tkj3ml2o
Tags: upstream-2.3.4
ImportĀ upstreamĀ versionĀ 2.3.4

Show diffs side-by-side

added added

removed removed

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