File: test_C_12.c

package info (click to toggle)
ccmalloc 0.4.0-9
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 488 kB
  • ctags: 446
  • sloc: ansic: 4,493; sh: 523; makefile: 105; cpp: 89
file content (13 lines) | stat: -rw-r--r-- 197 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdio.h>
#include <stdlib.h>

int
main()
{
  char * s = (char*) malloc(15);
  FILE * file = fopen("/dev/null", "w");
  free(s);
  fprintf(file, "hello world\n");
  exit(0);
  return 0;
}