gpt4 book ai didi

c++ - 什么是 PVOID 数据类型?

转载 作者:IT老高 更新时间:2023-10-28 22:32:01 33 4
gpt4 key购买 nike

谁能解释一下 PVOID 是什么以及它是如何在如下函数中使用的:

BOOL DoSomething(PVOID pMemPhy)

最佳答案

空指针,同

void *pMemPhy

又名“指向某物的指针,但由您自己决定”。

BOOL DoSomething ( PVOID pMemPhy )
{
strcpy((char *)pMemPhy, "I love buffer overflows!");
return TRUE;
}

关于c++ - 什么是 PVOID 数据类型?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/494163/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com