Delete cw_ktv_del_sub
This commit is contained in:
parent
459e2e2aeb
commit
e53b7f1142
@ -1,22 +0,0 @@
|
||||
|
||||
|
||||
#include "val.h"
|
||||
|
||||
void cw_ktv_del_sub(mavl_t ktvstore, const char *basekey)
|
||||
{
|
||||
cw_Val_t * result, search;
|
||||
|
||||
|
||||
while (1){
|
||||
search.key=(char*)basekey;
|
||||
result = mavl_get_first(ktvstore,&search);
|
||||
|
||||
if (result == NULL)
|
||||
return;
|
||||
|
||||
if (strncmp(result->key,basekey,strlen(basekey))!=0)
|
||||
break;
|
||||
search.key = result->key;
|
||||
mavl_del(ktvstore,&search);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user