Home | History | Annotate | Download | only in libevent

Lines Matching defs:base_len

2494 	const int base_len = strlen(base_name);
2495 const char need_to_append_dot = base_name[base_len - 1] == '.' ? 0 : 1;
2504 char *const newname = (char *) malloc(base_len + need_to_append_dot + postfix_len + 1);
2506 memcpy(newname, base_name, base_len);
2507 if (need_to_append_dot) newname[base_len] = '.';
2508 memcpy(newname + base_len + need_to_append_dot, postfix, postfix_len);
2509 newname[base_len + need_to_append_dot + postfix_len] = 0;