From: | Allan Odgaard |
Date: | 15 Sep 2001 at 04:17:18 |
Subject: | Re: [amiga-c] Re: Pointers in tables |
On Fri, 14 Sep 2001, Lee Atkins wrote:
> Ok, I'm a lil confused now.. hehe :p
So am I ;-)
> 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".
Is this to be understood as you have a structure e.g.:
struct Values
{
int money;
int date;
int ...
}
And for each field in this structure you assign a symbolic name ("money",
"date", ...) and want to be able to have code similar to this:
struct Values v1, v2, v3;
setvalue(&v1, "money", 100);
setvalue(&v2, "date", 25);
...
???
------------------------ 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/