memcpy from cstring