Back to index

glibc  2.9
Defines | Functions | Variables
bug-wfflush.c File Reference
#include <stdio.h>
#include <wchar.h>
#include <test-skeleton.c>

Go to the source code of this file.


#define PREPARE(argc, argv)   do_prepare ()
#define TEST_FUNCTION   do_test ()
#define L_(s)   L##s


static void do_prepare (void)
static int do_test (void)


static char * temp_file

Define Documentation

#define L_ (   s)    L##s
#define PREPARE (   argc,
)    do_prepare ()

Definition at line 7 of file bug-wfflush.c.

#define TEST_FUNCTION   do_test ()

Definition at line 9 of file bug-wfflush.c.

Function Documentation

static void do_prepare ( void  ) [static]

Definition at line 15 of file bug-wfflush.c.

  int fd = create_temp_file ("bug-ungetc.", &temp_file);
  if (fd == -1)
      printf ("cannot create temporary file: %m\n");
      exit (1);
  write (fd, "1!", 2);
  close (fd);

Here is the call graph for this function:

static int do_test ( void  ) [static]

Variable Documentation

char* temp_file [static]

Definition at line 12 of file bug-wfflush.c.