[Overview][Constants][Types][Classes][Procedures and functions][Variables] | Reference for unit 'System' (#rtl) |
Return offset of a variable.
Source position: system.fpd line 38
function Ofs( |
var X |
):LongInt; |
Ofs returns the offset of the address of a variable. This function is only supported for compatibility. In Free Pascal, it returns always the complete address of the variable, since Free Pascal is a 32 bit compiler.
None.
|
Return data segment |
|
|
Return code segment |
|
|
Return segment |
|
|
Combine segment and offset to pointer |
Program Example44; { Program to demonstrate the Ofs function. } Var W : Pointer; begin W:=Pointer(Ofs(W)); { W contains its own offset. } end.
No notes exist for this page yet.