?? asarray.h
字號:
/*
* FILE: asarray.h
* AUTHORS: Orion Hodson
*
* Associative array for strings. Perloined from RAT settings code.
*
* Copyright (c) 1999-2000 University College London
* All rights reserved.
*
* $Id: asarray.h,v 1.2 2001/10/03 23:40:29 wmay Exp $
*/
#ifndef __AS_ARRAY_H
#define __AS_ARRAY_H
typedef struct _asarray asarray;
#if defined(__cplusplus)
extern "C" {
#endif
/* Associative array for strings only. Makes own internal copies of
* keys and values.
*
* Functions that return use TRUE for success and FALSE for failure.
* Double pointers in arguments are filled in by the function being
* called.
*/
int32_t asarray_create (asarray **ppa);
void asarray_destroy (asarray **ppa);
int32_t asarray_add (asarray *pa, const char *key, const char *value);
void asarray_remove (asarray *pa, const char *key);
int32_t asarray_lookup (asarray *pa, const char *key, char **value);
/* asarray_get_key - gets key corresponding to index'th entry in
* internal representation, has not relation to order <key,value>
* tuples added in. This function exists to provide easy way to drain
* array one item at a time.
*/
const char* asarray_get_key_no(asarray *pa, int32_t index);
#if defined(__cplusplus)
}
#endif
#endif /* __AS_ARRAY_H */
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -