Jump to address in variable? 
Author Message
 Jump to address in variable?

How would you (in portable c) place a list of addresses in an array and then
jump to the new address?  Is there a way?  Thanks in advance.
Quote:
>>Jerry



Mon, 26 Dec 1994 23:44:52 GMT  
 Jump to address in variable?

Quote:

>How would you (in portable c) place a list of addresses in an array and then
>jump to the new address?

You don't.

It is, of course, possible to store function pointers in an array of function
pointers, and to call the functions indirectly thereby, but portable C doesn't
support a direct "jump" like that.  I believe that GCC provides such a
capability as an extension, but you may really want to reconsider your
problem-solving methodology.



Tue, 27 Dec 1994 18:48:37 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Incomplete import address table causes jump to invalid address

2. Incomplete import address table causes jump to invalid address

3. Can you help (was Jumping then jumping back again)

4. Handing variable addresses to functions

5. Address of Local Variable

6. Memory Address Reserved once variable is declared??

7. Help with addressing variables directly please

8. Returning address of local variable

9. Getting Address Of Variable Based On String

10. printing address of a variable

11. Setting the address of a variable

12. Returning address of local variable from function.

 

 
Powered by phpBB® Forum Software