Home
last modified time | relevance | path

Searched refs:base_len (Results 1 – 2 of 2) sorted by relevance

/components/utilities/ulog/backend/
A Dfile_be.c33 size_t base_len = 0; in ulog_file_rotate() local
37 base_len = rt_strlen(be->cur_log_dir_path) + rt_strlen(be->parent.name) + 1; in ulog_file_rotate()
46 rt_snprintf(old_path + base_len, SUFFIX_LEN, index ? "_%d.log" : ".log", index - 1); in ulog_file_rotate()
47 rt_snprintf(new_path + base_len, SUFFIX_LEN, "_%d.log", index); in ulog_file_rotate()
/components/finsh/
A Dmsh.c377 ssize_t base_len = 0; in _msh_exec_search_path() local
381 base_len = strlen(path); in _msh_exec_search_path()
384 path_buffer = rt_malloc(base_len + pg_len + 6); in _msh_exec_search_path()
390 if (base_len > 0) in _msh_exec_search_path()
392 memcpy(path_buffer, path, base_len); in _msh_exec_search_path()
393 path_buffer[base_len] = '/'; in _msh_exec_search_path()
394 path_buffer[base_len + 1] = '\0'; in _msh_exec_search_path()

Completed in 6 milliseconds