Use memcpy and memset rather than "roll ur own" (#1)