Xiqual 0.9.1

In file xitools/hash.c:

HashNode* hash_add

(struct HashTable* h,
  char* name,
  void* data)

Create node with specified data and add to a hash table.

Documentation

Create node with specified data and add to a hash table. The name will be duplicated. hash_newnode() is used to actually allocate the node. If the table is full, no node is added.
Parameters:
- h Hash table to add to.
- name Name to sort node by.
- data Any (void *) sized data you desire.
Returns:
The node created, or NULL on error. xi_lasterror may have meaningful text describing the problem. Only a table full error returns a string yet.
Author:
Ronny Bangsund

Alphabetic index



This page was generated with the help of DOC++.