Program Base Library Functions

int pblHtInsert

( pblHashTable_t* h, void* key, size_t keylen,
  void* dataptr )

insert a key / data pair into a hash table

Documentation

insert a key / data pair into a hash table

only the pointer to the data is stored in the hash table no space is malloced for the data!

Parameters:
h - hash table to insert to
key - key to insert
keylen - length of that key
dataptr - dataptr to insert
Returns:
int ret == 0: ok
int ret == -1: an error, see pbl_errno:
PBL_ERROR_EXISTS: an item with the same key already exists
PBL_ERROR_OUT_OF_MEMORY: out of memory

Alphabetic index



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