BOOL foo(void){ static BOOL displayed = FALSE; static BOOL initialized = FALSE; if (displayed) return FALSE; //more code displayed = TRUE; return FALSE; } what's the meaning of a static local variable in C ?
if this method is called a second time, the displayed won't be re-initialized to FALSE?