title: How to represent a Python-like dictionary in C
body: <p>In Python it's easy:</p>
  
  <pre><code>x = {}
  x['USD'] = "Dollars"
  x['CLP'] = "Pesos"
  </code></pre>
  
  <p>or </p>
  
  <pre><code>y = {'lat': 23.678900, 'lng': 121.451928, 'name': "Sin City"}
  </code></pre>
  
  <p>I think most of these kinds of problems have been solved, so where can I get information about dictionaries in C? I do not want to reinvent the wheel.</p>
  
  <p>How do I implement a dictionary in C?</p>