Change memcpy, memmove, and memset to pure