示例#1
0
文件: test.cpp 项目: echoline/NeoIRCD
int main() {
    Hash htable;
    Avl key;

    assert(mkhash(&htable, 5) == 0);

    inserthash(&htable, &key);

    Avl *a = lookuphash(&htable, &key);

    printf("%p\n", a);
}
示例#2
0
MCHashentry *MCVariableArray::lookupindex(uint32_t p_index, Boolean add)
{
	char t_buffer[U4L];
	sprintf(t_buffer, "%u", p_index);
	return lookuphash(t_buffer, True, add);
}