Back to index

glibc  2.9
Defines | Functions | Variables
bug-strncat1.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

Go to the source code of this file.

Defines

#define __USE_STRING_INLINES

Functions

int main (void)

Variables

char d [3] = "\0\1\2"

Define Documentation

Definition at line 3 of file bug-strncat1.c.


Function Documentation

int main ( void  )

Definition at line 11 of file bug-strncat1.c.

{
  strncat (d, "\5\6", 1);
  if (d[0] != '\5')
    {
      puts ("d[0] != '\\5'");
      exit (1);
    }
  if (d[1] != '\0')
    {
      puts ("d[1] != '\\0'");
      exit (1);
    }
  if (d[2] != '\2')
    {
      puts ("d[2] != '\\2'");
      exit (1);
    }

  return 0;
}

Here is the call graph for this function:


Variable Documentation

char d[3] = "\0\1\2"

Definition at line 8 of file bug-strncat1.c.