actube/src/cw/cw_ktv_get_bstr16.c

14 lines
257 B
C
Raw Normal View History

2022-07-31 17:15:32 +02:00
#include "val.h"
#include "bstr.h"
bstr16_t cw_ktv_get_bstr16(mavl_t ktv,const char *key, bstr16_t def)
{
2022-07-31 17:15:32 +02:00
cw_Val_t * k;
k = cw_ktv_get(ktv,key,CW_TYPE_BSTR16);
if (k != NULL){
return bstr16_create(k->type->data(k),k->type->len(k));
}
return def;
}