title: C ncurses WINDOW as extern
body: <p>I am writing a terminal based menu that calls a function to move up/down in the menu with the arrow keys. The problem is I need the WINDOW to be seen by two functions (neither of them is stdscr). I have tried to create an extern WINDOW by declaring it in the header with no success. Any suggestions how i can accomplish this? Thanks</p>