Is there anything obvious as to why this wouldn't work, basically i have three files. Two .c files and one .h
in the .h i have a structure called "structure"
struct structure example;
in the two .c files i have included the .h file but for some reason the variables are not carrying across between the two functions. For example in function 1
example.IpIndex = 1;
but in the following function 2
example.IpIndex is showing as 0.
Bit difficult to try and explain but any ideas as to if this should work and is there something else interfering or am i totally barking up wrong tree.