I have a header file containing:
Code:
struct confTimer{
char name[3];
char direction[8];
uint countValue;
};
uint run_timer(struct confTimer cT);
I have a function file containing:
Code:
uint run_timer(struct confTimer cT){
if (!strcmp(cT.name, "B0")) {
I have main (separate file) containing:
Code:
struct confTimer radioT;
radioT.name[3] = "B0";
radioT.direction[8] = "up_down";
radioT.countValue = 4455;
run_timer(radioT);
I am never stepping into the function at the conditional if...What am I missing?
Thanks