MCPcopy Create free account
hub / github.com/corosync/corosync / icmap_check_key_name

Function icmap_check_key_name

exec/icmap.c:293–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291}
292
293static int icmap_check_key_name(const char *key_name)
294{
295 int i;
296
297 if ((strlen(key_name) < ICMAP_KEYNAME_MINLEN) || strlen(key_name) > ICMAP_KEYNAME_MAXLEN) {
298 return (-1);
299 }
300
301 for (i = 0; i < strlen(key_name); i++) {
302 if (!icmap_is_valid_name_char(key_name[i])) {
303 return (-1);
304 }
305 }
306
307 return (0);
308}
309
310size_t icmap_get_valuetype_len(icmap_value_types_t type)
311{

Callers 1

icmap_set_rFunction · 0.85

Calls 1

icmap_is_valid_name_charFunction · 0.85

Tested by

no test coverage detected