Comparison of programming languages (associative array): Difference between revisions

Content deleted Content added
Link doesn't exist anymore: Error 404
AnomieBOT (talk | contribs)
m Dating maintenance tags: {{Dead link}}
Line 57:
 
=== C ===
There is no standard implementation of an associative array in C, but a 3rd party library with BSD license is available [http://www.cl.cam.ac.uk/~cwc22/hashtable/ here]{{Dead link|date=October 2011}} . [[POSIX]] 1003.1-2001 describes the functions <code>hcreate()</code>, <code>hdestroy()</code> and <code>hsearch()</code>.
 
Another 3rd party library, [http://uthash.sourceforge.net/ uthash], also creates associative arrays from C structures. A structure represents a value, and one of the structure fields acts as the key.