Some hacky memory stuffs (in C).