title: Avoiding Global Variables For Configuration File Reading in C
body: <p>My project is developed in C under linux platform. I am also using libxml2 . The executable consists of multiple modules distributed in multiple c files.</p>
  
  <p>I have a configuration file ( Xml ) with 20 configurable parameters. </p>
  
  <p>Let us say I am reading the configuration file parameters in Module M1. But I need them in other big modules M2 and M3.</p>
  
  <p>Is there any efficient way to make the configurable parameters available to all the modules without using global variables to read parameters in module M1.</p>
  
  <p>Specifically is there any other method / design to avoid using globally declared variables to read configuration parameters. </p>