next up previous contents index
Next: mapBind Up: Map Operations Previous: Map Operations

mapCreate

   

Creates a map with table_len elements in it. External keys bound in this map are keySize bytes long. The maximum value for the key size is MAX_MAP_KEY_SIZE, currently 100 bytes. Programmers should normally use sizeof(structuretype) as the key size to facilitate platform independence. Note that maps never overflow, but they perform best if table_len is chosen so that the map is at most 50-80% full. Returns 0 if the map could not be created.

Map mapCreate(int table_len, int keySize)



Larry Peterson
Wed Jan 10 10:40:08 MST 1996