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

« back to all changes in this revision

Viewing changes to localedata/tests-mbwc/tst_wcslen.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
  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
 
 
10
int
 
11
tst_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 (ws);
 
24
      TST_IF_RETURN (S_WCSLEN)
 
25
      {
 
26
      };
 
27
    }
 
28
  }
 
29
 
 
30
  return err_count;
 
31
}