kolibrios-fun/programs/develop/libraries/libs_v2/include/array.h
pavelyakov befac9b242 source code library
git-svn-id: svn://kolibrios.org@5936 a494cfbc-eb01-0410-851d-a64ba20cac60
2015-11-27 09:20:48 +00:00

24 lines
465 B
C

typedef struct
{
dword key;
dword value;
} array_data;
typedef struct
{
array_data *(* key_string_set)(char *);
void *(* key_string_get)(char *,array_data *);
} ARRAY;
ARRAY array;
char _init_array_ = 0;
void init_array(void)
{
if(_init_array_) return;
library.load("/sys/lib/array.obj");
array.key_string_set = library.get("array.key_string_set");
array.key_string_get = library.get("array.key_string_get");
_init_array_ = 1;
}