From: | Lee Atkins |
Date: | 14 Sep 2001 at 17:49:38 |
Subject: | [amiga-c] Re: Pointers in tables |
Ok, I'm a lil confused now.. hehe :p
This is my table of settable values..
>> { "money", structure->money },
Lets say that I have a number of instances of 'structure' that are already
allocated and I have a list of pointers to them.. (lets forget about
'substructure' inthe previous email for now..) 'money' is an integer value within 'structure'.
In the end I need a function like this: setval( *blah, "money", 100)
Where 'blah' is the same type as 'structure' and would set
blah->money = 100;
by looking through my table of settable values and finding the right pointer
for "money".
How do I access blah->sub->money and set it from the table?
Something like: *value_table[num].pointer_to_value = 100; ??
Forgive me for being dumb :)
Ash.
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Do you need to encrypt all your online transactions? Secure corporate intranets? Authenticate your Web sites? Whatever
security your site needs, you'll find the perfect solution here!
http://us.click.yahoo.com/wOMkGD/Q56CAA/yigFAA/dpFolB/TM
---------------------------------------------------------------------~->
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/