Home
last modified time | relevance | path

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

/DragonOS-0.1.5/user/apps/shell/
Dcmd.c42 char *file_path = NULL; in get_target_filepath() local
50 file_path = (char *)malloc(*result_path_len + 2); in get_target_filepath()
52 memset(file_path, 0, *result_path_len + 2); in get_target_filepath()
54 strncpy(file_path, shell_current_path, cwd_len); in get_target_filepath()
58 file_path[cwd_len] = '/'; in get_target_filepath()
61 strcat(file_path, filename); in get_target_filepath()
66 file_path = (char *)malloc(*result_path_len + 2); in get_target_filepath()
68 memset(file_path, 0, *result_path_len + 2); in get_target_filepath()
70 strncpy(file_path, filename, *result_path_len); in get_target_filepath()
72 file_path[*result_path_len] = '/'; in get_target_filepath()
[all …]