Skip to content

Instantly share code, notes, and snippets.

@meteficha
meteficha / a.c
Created July 30, 2012 19:25 — forked from danielsaad/Source Code
Realloc copy operations
#include <stdio.h>
#include <stdlib.h>
const size_t MAX_SIZE = 1024*1024*1024; /* 1 GiB */
int main(){
void* ptr=NULL;
void* decoy=NULL;
void* last;
int n=0;