title: C equivalent to Fortran namelist
body: <p>I am used to Fortran in which I used the namelist sequential read in to get variables out of a file. This allows me to have a file which looks like this</p>
  
  <pre><code>&amp;inputDataList
  n = 1000.0 ! This is the first variable
  m = 1e3 ! Second
  l = -2 ! Last variable
  /
  </code></pre>
  
  <p>where I can name the variable by it's name and assign a value as well as comment afterwards to state what the variable actually is. The loading is done extremely easy by</p>
  
  <pre><code>namelist /inputDataList/ n, m, l
  open( 100, file = 'input.txt' )
  read( unit = 100, nml = inputDataList )
  close( 100 )
  </code></pre>
  
  <p>Now my question is, is there any similar thing in C? Or would I have to do it manually by chopping the string at the '=' and so on?</p>