File: test_C_06.c

package info (click to toggle)
ccmalloc 0.3.8-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 464 kB
  • ctags: 447
  • sloc: ansic: 4,488; sh: 432; makefile: 99; cpp: 98
file content (10 lines) | stat: -rw-r--r-- 115 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
#include <stdlib.h>

int main()
{
  char * s = (char*) malloc(4);
  s[-1]='A';
  free(s);
  exit(0);
  return 0;
}