Lines Matching defs:base_len
3124 const size_t base_len = strlen(base_name);
3125 const char need_to_append_dot = base_name[base_len - 1] == '.' ? 0 : 1;
3134 char *const newname = (char *) mm_malloc(base_len + need_to_append_dot + postfix_len + 1);
3136 memcpy(newname, base_name, base_len);
3137 if (need_to_append_dot) newname[base_len] = '.';
3138 memcpy(newname + base_len + need_to_append_dot, postfix, postfix_len);
3139 newname[base_len + need_to_append_dot + postfix_len] = 0;