Back to index

glibc  2.9
Defines | Functions
tst_wcwidth.c File Reference
#include "tsp_common.c"
#include "dat_wcwidth.c"

Go to the source code of this file.

Defines

#define TST_FUNCTION   wcwidth

Functions

int tst_wcwidth (FILE *fp, int debug_flg)

Define Documentation

#define TST_FUNCTION   wcwidth

Definition at line 5 of file tst_wcwidth.c.


Function Documentation

int tst_wcwidth ( FILE fp,
int  debug_flg 
)

Definition at line 11 of file tst_wcwidth.c.

{
  TST_DECL_VARS (int);
  wchar_t wc;

  TST_DO_TEST (wcwidth)
  {
    TST_HEAD_LOCALE (wcwidth, S_WCWIDTH);
    TST_DO_REC (wcwidth)
    {
      TST_GET_ERRET (wcwidth);
      wc = TST_INPUT (wcwidth).wc;
      ret = wcwidth (wc);

      if (debug_flg)
       {
         fprintf (stdout, "wcwidth() [ %s : %d ] ret  = %d\n", locale,
                 rec + 1, ret);
       }

      TST_IF_RETURN (S_WCWIDTH)
      {
      }
    }
  }

  return err_count;
}

Here is the call graph for this function: