We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi everyone,
I want to update a structure member using a function and read it in other functions;
anyone helpp?
typedef struct { uint32_t Update; }StructUpdate; StructUpdate Objstr, *Objstrpoint = &Objstr; void Program() { Objstrpoint->Update = 14; } void Read1() { if(Objstr.Update == 14)//doesnt work! ... } void Read2() { if(Objstr.Update == 15)//doesnt work! ... } void Read3() { if(Objstr.Update == 16)//doesnt work! ... } . . . . . int main() { if(Objstr.Update == 14)//this also doesnt work! }