I am sure this is an easy one, but for some reason, I can't figure it out. I am trying to set up a global variable string in a header file, initialize the value in main.c and then access the variable in a function in another .c file. Whenever I try to access from that secondary file, I get nothing. Here is a simpified example below that I hope will show what I am trying to do.
/* variables.h */
/* main.c */
/* other.c */
For some reason, the value of filename is always NULL in the other.c app. Why is this? What am I doing wrong? Thanks.