MCPcopy Create free account
hub / github.com/acl-dev/acl / fmt_del

Method fmt_del

lib_acl_cpp/src/hsocket/hsclient.cpp:289–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287}
288
289bool hsclient::fmt_del(const char* first_value, ...)
290{
291 if (tbl_curr_ == NULL) {
292 error_ = HS_ERR_NOT_OPEN;
293 logger_error("tbl not opened yet!");
294 return false;
295 }
296
297 va_list ap;
298 char *ptr;
299
300 va_start(ap, first_value);
301
302 tbl_curr_->values_[0] = NULL;
303 int i = 0;
304 while ((ptr = va_arg(ap, char*)) != NULL) {
305 if (i >= tbl_curr_->nfld_) {
306 break;
307 }
308 tbl_curr_->values_[i] = ptr;
309 i++;
310 }
311 va_end(ap);
312
313 return del((const char**) tbl_curr_->values_, i, cond_def_, 0, 0);
314}
315
316bool hsclient::add(const char* values[], int num)
317{

Callers

nothing calls this directly

Calls 1

delFunction · 0.85

Tested by

no test coverage detected