Create Mem Management in C