XCreateAssocTable man page on HP-UX

Man page or keyword search:  
man Server   10987 pages
apropos Keyword Search (all sections)
Output format
HP-UX logo
[printable version]

XCreateAssocTable()					   XCreateAssocTable()

Name
  XCreateAssocTable – create a new association table (X10).

Synopsis
  XAssocTable *XCreateAssocTable(size)
	int size;

Arguments
  size	    Specifies the number of buckets in the hashed association ta‐
	    ble.

Returns
  The created association table.

Description
  XCreateAssocTable() creates an association table, which allows  you  to
  associate  your own structures with X resources in a fast lookup table.
  This function is provided for compatibility with X Version 10.  To  use
  it  you  must	 include  the  file <X11/X10.h> and link with the library
  -loldX.

  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; a reasonable maximum number of object per buckets is 8.

  If  there  is	 an  error  allocating memory for the XAssocTable, a NULL
  pointer is returned.

  For more information on association tables, see Volume One, Appendix B,
  X10 Compatibility.

Structures
     typedef struct {
	 XAssoc *buckets;  /* pointer to first bucket in array */
	 int size;	   /* table size (number of buckets) */
     } XAssocTable;

See Also
  XDeleteAssoc(), XDestroyAssocTable(), XLookUpAssoc(), XMakeAssoc().

Xlib - Association Tables				   XCreateAssocTable()
[top]

List of man pages available for HP-UX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net