actube/src/cw/cw_ktv_get_dword.c

12 lines
201 B
C
Raw Normal View History

2022-07-31 17:15:32 +02:00
#include "val.h"
uint32_t cw_ktv_get_dword(mavl_t ktv,const char *key, uint32_t def)
{
2022-07-31 17:15:32 +02:00
cw_Val_t * k;
k = cw_ktv_get(ktv,key,CW_TYPE_DWORD);
if (k != NULL){
return k->val.dword;
}
return def;
}