2022-07-31 17:15:32 +02:00
|
|
|
#include "val.h"
|
2018-03-17 12:32:40 +01:00
|
|
|
|
|
|
|
uint16_t cw_ktv_get_word(mavl_t ktv,const char *key, uint16_t def)
|
|
|
|
{
|
2022-07-31 17:15:32 +02:00
|
|
|
cw_Val_t * k;
|
2018-03-17 12:32:40 +01:00
|
|
|
k = cw_ktv_get(ktv,key,CW_TYPE_WORD);
|
|
|
|
if (k != NULL){
|
|
|
|
return k->val.word;
|
|
|
|
}
|
|
|
|
return def;
|
|
|
|
}
|