一套接口
源代码在线查看: table.h
软件大小: |
53 K |
上传用户: |
linux_open_lab |
|
|
关键词: |
套接
|
下载地址: |
免注册下载 普通下载
|
|
/* $Id: table.h 6 2007-01-22 00:45:22Z drhanson $ */ #ifndef TABLE_INCLUDED #define TABLE_INCLUDED #define T Table_T typedef struct T *T; extern T Table_new (int hint, int cmp(const void *x, const void *y), unsigned hash(const void *key)); extern void Table_free(T *table); extern int Table_length(T table); extern void *Table_put (T table, const void *key, void *value); extern void *Table_get (T table, const void *key); extern void *Table_remove(T table, const void *key); extern void Table_map (T table, void apply(const void *key, void **value, void *cl), void *cl); extern void **Table_toArray(T table, void *end); #undef T #endif