How to provide global access to locally scoped static variable.
Here is example of how to provide global access to local static variable.
#ifndef FOO_H
#define FOO_H
void setGlobal(int value);
int getGlobal();
#endif
static int globalInt = 0;
void setGlobal(int value)
{
globalInt = value;
}
int getGlobal()
{
return globalInt;
}