2022-07-31 17:15:32 +02:00
|
|
|
#include "val.h"
|
2018-04-01 08:28:27 +02:00
|
|
|
|
2018-04-01 10:05:01 +02:00
|
|
|
char * cw_ktv_get_str(mavl_t ktv,const char *key, char * def)
|
2018-04-01 08:28:27 +02:00
|
|
|
{
|
2022-07-31 17:15:32 +02:00
|
|
|
cw_Val_t * k;
|
2018-04-01 08:28:27 +02:00
|
|
|
k = cw_ktv_get(ktv,key,CW_TYPE_STR);
|
|
|
|
if (k != NULL){
|
|
|
|
return k->val.ptr;
|
|
|
|
}
|
|
|
|
return def;
|
|
|
|
}
|