C-based memory allocation program.