Use `cptr` instead of `voidp` since it's removed.