Back to index

glibc  2.9
Defines | Functions | Variables
tst-mbrtowc2.c File Reference
#include <locale.h>
#include <stdio.h>
#include <string.h>
#include <wchar.h>
#include "../test-skeleton.c"

Go to the source code of this file.


#define ntests   (sizeof (tests) / sizeof (tests[0]))
#define TEST_FUNCTION   do_test ()


static int t (const char *ch, size_t nch, const char *loc)
static int do_test (void)


struct {
const char * chp
size_t nchp
const char * loc
tests []

Define Documentation

#define ntests   (sizeof (tests) / sizeof (tests[0]))

Definition at line 23 of file tst-mbrtowc2.c.

#define TEST_FUNCTION   do_test ()

Definition at line 66 of file tst-mbrtowc2.c.

Function Documentation

static int do_test ( void  ) [static]

Definition at line 29 of file tst-mbrtowc2.c.

  int r = 0;
  for (int i = 0; i < ntests; ++i)
    r |= t (tests[i].chp, tests[i].nchp, tests[i].loc);
  return r;
static int t ( const char *  ch,
size_t  nch,
const char *  loc 
) [static]

Variable Documentation

struct { ... } tests[] [static]