title: Parsing a .conf file with single function call in c
body: <p>is there an elegant way of parsing .conf file in a c program? say, if i have normal text file -</p>
  
  <pre><code>param1 = 22
  param2 = 99
  param34 = 11
  param11 = 15
  ...
  </code></pre>
  
  <p>it'd be nice to get access in one function call, smth like:</p>
  
  <pre><code>int c = xfunction(my.conf, param34);
  </code></pre>
  
  <p>and now c = 11. Many thanks in advance.</p>