print memcpy buffer