Is there a way to parse a string and use that information to fill the corresponding member in a structure? So, for example:
struct some_stuff {
int abc;
int def;
} stuff;
string = "def = 99";
after parsing:
member = "def";
memval = 99;
stuff."member" = 99;
Does that make sense? Thanks in advance!!!
struct some_stuff {
int abc;
int def;
} stuff;
string = "def = 99";
after parsing:
member = "def";
memval = 99;
stuff."member" = 99;
Does that make sense? Thanks in advance!!!