📄 ictable.h
字号:
/* Copyright 2003-2006, Voltage Security, all rights reserved.
*/
#include "vibe.h"
#include "environment.h"
#include "base.h"
#include "libctx.h"
#include "stringutil.h"
#ifndef _ICTABLE_H_
#define _ICTABLE_H_
#ifdef __cplusplus
extern "C" {
#endif
typedef struct
{
char *key;
char *value;
Pointer next;
} icTable;
/* Creates a table. You must free the result with icTableFree when you are
* done using it.
*/
int icTableCreate (
icTable **entry,
VoltLibCtx *libCtx
);
/* Frees all memory used by the table.
*/
void icTableFree (
icTable **table,
VoltLibCtx *libCtx
);
/* Associate the given key with the given value in the table. The table
* makes it's own copies of the key and value passed into it.
*/
int icTablePut (
icTable *table,
char *key,
char *value,
VoltLibCtx *libCtx
);
/* Gets the value associated with a reference. The value returned is
* owned by the icTable and is destroyed when the icTable is freed or
* when the value is replaced with another using icTablePut with the
* same reference.
* <p>If it can't find a table entry for the reference, it will set
* *value to NULL.
*/
void icTableGet (
icTable *table,
char *reference,
char **value,
VoltLibCtx *libCtx
);
#ifdef __cplusplus
}
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -