Logo Search packages:      
Sourcecode: ccmalloc version File versions  Download package

test_C_15.c

#include <string.h>
#include <stdio.h>
#include <stdlib.h>

static const char * str = "this is a string";

int
main()
{
  char * s = strdup(str);
  s = strdup(s);
  free(s);

  exit(0);
  return 0;
}

Generated by  Doxygen 1.6.0   Back to index