NullRawPointerQ

NullRawPointerQ[ptr]

如果 ptr 是零指针,则给出 True,否则,给出 False.

更多信息

  • 零指针是地址为 0 的指针.

范例

基本范例  (2)

测试 OpaqueRawPointer 是否为零指针:

加载外部函数的指针:

有效的外部函数指针不会是零:

测试 RawPointer 是否为零指针:

将字符串导出为原始内存:

原始内存的指针不会是零:

Wolfram Research (2023),NullRawPointerQ,Wolfram 语言函数,https://reference.wolfram.com/language/ref/NullRawPointerQ.html.

文本

Wolfram Research (2023),NullRawPointerQ,Wolfram 语言函数,https://reference.wolfram.com/language/ref/NullRawPointerQ.html.

CMS

Wolfram 语言. 2023. "NullRawPointerQ." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/NullRawPointerQ.html.

APA

Wolfram 语言. (2023). NullRawPointerQ. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/NullRawPointerQ.html 年

BibTeX

@misc{reference.wolfram_2024_nullrawpointerq, author="Wolfram Research", title="{NullRawPointerQ}", year="2023", howpublished="\url{https://reference.wolfram.com/language/ref/NullRawPointerQ.html}", note=[Accessed: 05-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_nullrawpointerq, organization={Wolfram Research}, title={NullRawPointerQ}, year={2023}, url={https://reference.wolfram.com/language/ref/NullRawPointerQ.html}, note=[Accessed: 05-November-2024 ]}