12.8.4 Foreign hash tables
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
      • Foreign Language Interface
        • Notes on Using Foreign Code
          • Foreign hash tables
            • PL_new_hash_table()
            • PL_free_hash_table()
            • PL_lookup_hash_table()
            • PL_add_hash_table()
            • PL_del_hash_table()
            • PL_clear_hash_table()
            • PL_new_hash_table_enum()
            • PL_free_hash_table_enum()
            • PL_advance_hash_table_enum()
    • Packages
Availability:C-language interface function
hash_table_t PL_new_hash_table(int size, void (*free_symbol)(void *n, void *v))
Create a new table for size key-value pairs. The table is resized when needed. If you know the table will hold 10,000 key-value pairs, providing a suitable initial size avoids resizing. The free_symbol function is called whenever a key-value pair is removed from the table. This can be NULL.