title: Serialize Data Structures in C
body: <p>I'd like a C library that can serialize my data structures to disk, and then load them again later. It should accept arbitrarily nested structures, possibly with circular references.</p>
  
  <p>I presume that this tool would need a configuration file describing my data structures. The library is allowed to use code generation, although I'm fairly sure it's possible to do this without it. </p>
  
  <p>Note I'm not interested in data portability. I'd like to use it as a cache, so I can rely on the environment not changing.</p>
  
  <p>Thanks.</p>
  
  <hr>
  
  <p><em>Results</em></p>
  
  <p>Someone suggested <a href="http://tpl.sourceforge.net/" rel="noreferrer">Tpl</a> which is an awesome library, but I believe that it does not do arbitrary object graphs, such as a tree of Nodes that each contain two other Nodes.</p>
  
  <p>Another candidate is <a href="http://www.enlightenment.org/p.php?p=about/efl/eet&amp;l=en" rel="noreferrer">Eet</a>, which is a project of the Enlightenment window manager. Looks interesting but, again, seems not to have the ability to serialize nested structures.</p>