Back to index

glibc  2.9
Defines | Functions
tst_wcswidth.c File Reference
#include "tsp_common.c"
#include "dat_wcswidth.c"

Go to the source code of this file.

Defines

#define TST_FUNCTION   wcswidth

Functions

int tst_wcswidth (FILE *fp, int debug_flg)

Define Documentation

#define TST_FUNCTION   wcswidth

Definition at line 5 of file tst_wcswidth.c.


Function Documentation

int tst_wcswidth ( FILE fp,
int  debug_flg 
)

Definition at line 11 of file tst_wcswidth.c.

{
  TST_DECL_VARS (int);
  wchar_t *ws;
  int n;

  TST_DO_TEST (wcswidth)
  {
    TST_HEAD_LOCALE (wcswidth, S_WCSWIDTH);
    TST_DO_REC (wcswidth)
    {
      TST_GET_ERRET (wcswidth);
      ws = TST_INPUT (wcswidth).ws;
      n = TST_INPUT (wcswidth).n;
      ret = wcswidth (ws, n);

      if (debug_flg)
       {
         fprintf (stderr, "wcswidth: [ %d ] : ret = %d\n", rec + 1, ret);
       }

      TST_IF_RETURN (S_WCSWIDTH)
      {
      };
    }
  }

  return err_count;
}

Here is the call graph for this function: