actube/src/cw/cw_ktv_get_sysptr.c

12 lines
197 B
C
Raw Normal View History

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