XCreateAssocTable

Syntax

XAssocTable *XCreateAssocTable(size)
      int size;	

Arguments

size Specifies the number of buckets in the hash system of XAssocTable.

Description

The size argument specifies the number of buckets in the hash system of XAssocTable . For reasons of efficiency the number of buckets should be a power of two. Some size suggestions might be: use 32 buckets per 100 objects, and a reasonable maximum number of objects per buckets is 8. If an error allocating memory for the XAssocTable occurs, a NULL pointer is returned.

See also

"Compatibility Functions".
Christophe Tronche, ch@tronche.com