actube/src/cw/cw_ktv_get_bool.c
7u83@mail.ru debcfd6f3e cw_ktv_get_bool added
FossilOrigin-Name: d486a3b3b3db909c9464e57bcb6f285f8f8f50600496326e65d095891842780c
2018-04-04 08:27:56 +00:00

12 lines
199 B
C

#include "ktv.h"
uint8_t cw_ktv_get_bool(mavl_t ktv,const char *key, uint8_t def)
{
cw_KTV_t * k;
k = cw_ktv_get(ktv,key,CW_TYPE_BOOL);
if (k != NULL){
return k->val.boolean;
}
return def;
}