-
Notifications
You must be signed in to change notification settings - Fork 0
Pointer
Iva edited this page Sep 27, 2024
·
2 revisions
Prints a memory address in hexadecimal format:
Prints a pointer as a hexadecimal string prefixed with0x
.
Library | None (Internal helper function) |
---|---|
Signature | int print_pointer(void *ptr); |
Parameters |
ptr : The memory address (pointer) to be printed. |
Return | The total number of characters printed, including the 0x prefix. |
int printed = print_pointer((void *)0xdeadbeef); // Prints "0xdeadbeef"
Prints
0x
followed by the hexadecimal representation of the pointer. If the pointer isNULL
, prints(nil)
.
Previous ⬅️ • Top ⬆️ • Next ➡️