Back to index

glibc  2.9
Defines | Functions
bug22.c File Reference
#include <stdio.h>
#include "../test-skeleton.c"

Go to the source code of this file.

Defines

#define N   2147483648
#define STRINGIFY(S)   #S
#define MAKE_STR(S)   STRINGIFY(S)
#define SN   MAKE_STR(N)
#define TIMEOUT   30
#define TEST_FUNCTION   do_test ()

Functions

static int do_test (void)

Define Documentation

#define MAKE_STR (   S)    STRINGIFY(S)

Definition at line 7 of file bug22.c.

#define N   2147483648

Definition at line 4 of file bug22.c.

#define SN   MAKE_STR(N)

Definition at line 9 of file bug22.c.

#define STRINGIFY (   S)    #S

Definition at line 6 of file bug22.c.

#define TEST_FUNCTION   do_test ()

Definition at line 31 of file bug22.c.

#define TIMEOUT   30

Definition at line 30 of file bug22.c.


Function Documentation

static int do_test ( void  ) [static]

Definition at line 12 of file bug22.c.

{
  int ret;

  FILE *fp = fopen ("/dev/null", "w");
  if (fp == NULL)
    {
      puts ("cannot open /dev/null");
      return 1;
    }

  ret = fprintf (fp, "%" SN "d%" SN "d", 1, 1);

  printf ("ret = %d\n", ret);

  return ret != -1;
}

Here is the call graph for this function: