NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
unsigned long reladdressOf ( variant  data)
inline

Get the relative address of a variable.

Get the relative address of a variable and return it to the calling routine as an unsigned long value. The relative address is an offset from the Command module's MemoryPool address.

Warning
This function requires the enhanced NBC/NXC firmware version 1.28+.
Parameters
dataA variable whose address you wish to get.
Returns
The relative address of the variable.
Examples:
ex_reladdressof.nxc.