Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[C][help request] variable with typestruct
#1
I have this code:

Code:
typedef struct {
    unsigned short a, b, c, d, e, f, g, h;
}est_;
est_ est[512];

I want to know if there is a way to access to a variable of est by this kind of thing:

Code:
var='a';
est[1].[var]=0;

Yes, it doesnt work but, there is a way to do such a thing?

Greetings!
Reply


Messages In This Thread
[C][help request] variable with typestruct - by suricata - 10-08-2009, 05:32 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)