Back to index

glibc  2.9
Defines | Functions
tst_wctype.c File Reference
#include "tsp_common.c"
#include "dat_wctype.c"

Go to the source code of this file.

Defines

#define TST_FUNCTION   wctype

Functions

int tst_wctype (FILE *fp, int debug_flg)

Define Documentation

#define TST_FUNCTION   wctype

Definition at line 6 of file tst_wctype.c.


Function Documentation

int tst_wctype ( FILE fp,
int  debug_flg 
)

Definition at line 12 of file tst_wctype.c.

{
  TST_DECL_VARS (wctype_t);
  char *class;

  TST_DO_TEST (wctype)
  {
    TST_HEAD_LOCALE (wctype, S_WCTYPE);
    TST_DO_REC (wctype)
    {
      TST_GET_ERRET (wctype);
      class = TST_INPUT (wctype).class;
      ret = wctype (class);

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

      TST_IF_RETURN (S_WCTYPE)
      {
       if (ret != 0)
         {
           Result (C_SUCCESS, S_WCTYPE, CASE_3, MS_PASSED);
         }
       else
         {
           err_count++;
           Result (C_FAILURE, S_WCTYPE, CASE_3,
                  "should return non-0, but returned 0");
         }
      }
    }
  }

  return err_count;
}

Here is the call graph for this function: