C Global Variable Best Practices