Exemplo n.º 1
0
Arquivo: zhashx.c Projeto: claws/czmq
void
zhashx_autofree (zhashx_t *self)
{
    assert (self);
    zhashx_set_destructor (self, (czmq_destructor *) zstr_free);
    zhashx_set_duplicator (self, (czmq_duplicator *) strdup);
}
Exemplo n.º 2
0
///
//  Set a user-defined duplicator for hash items; by default items are not
//  copied when the hash is duplicated.                                   
void QZhashx::setDuplicator (zhashx_duplicator_fn duplicator)
{
    zhashx_set_duplicator (self, duplicator);
    
}