Subset of C language with tree interpreter and bytecode compiler + VM.
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

13 lines
247 B

// multiple-free
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
int main() {
int *ptr = (int *)malloc(sizeof(*ptr));
assert(ptr != 0);
free(ptr); printf("%p\n", ptr);
free(ptr); printf("%p\n", ptr);
return 0;
}