NullRawPointerQ

NullRawPointerQ[ptr]

gives True if ptr is a null pointer, and False otherwise.

Details

  • A null pointer is a pointer whose address is 0.

Examples

Basic Examples  (2)

Test whether an OpaqueRawPointer is a null pointer:

Load a pointer to a foreign function:

A valid foreign function pointer is not null:

Test whether a RawPointer is a null pointer:

Export a string as raw memory:

The pointer to the raw memory is not null:

Wolfram Research (2023), NullRawPointerQ, Wolfram Language function, https://reference.wolfram.com/language/ref/NullRawPointerQ.html.

Text

Wolfram Research (2023), NullRawPointerQ, Wolfram Language function, https://reference.wolfram.com/language/ref/NullRawPointerQ.html.

CMS

Wolfram Language. 2023. "NullRawPointerQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/NullRawPointerQ.html.

APA

Wolfram Language. (2023). NullRawPointerQ. Wolfram Language & System Documentation Center. Retrieved from 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: 21-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: 21-November-2024 ]}