/usr/include/uclmmbase/asarray.h is in libuclmmbase1-dev 1.2.16.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | /*
* 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.1 2000/02/11 18:34:16 ucacoxh 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 */
|