Silverfrost Forums

Welcome to our forums

Variable Address

15 Aug 2006 8:54 #931

I am porting an old program and one feature that was used was a pointer function. This function returned the segment:offset of any variable passed to it. I have not been able to find anything similar using the current FTN95 compiler.
Can anyone help point (no pun here) me in the right direction.

Thanks, Ed

15 Aug 2006 11:59 #933

Ed

You can use the Salford intrinsic LOC(var) to give the address of var. From this you can calculate the segment and offset.

Please login to reply.