| 111 | } |
| 112 | |
| 113 | static char *winpath_dirdup(char *des, const char *src) |
| 114 | { |
| 115 | char *path; |
| 116 | int i = 0; |
| 117 | |
| 118 | path = rt_malloc(FILE_PATH_MAX); |
| 119 | if (path == RT_NULL) |
| 120 | return RT_NULL; |
| 121 | |
| 122 | strcpy(path, des); |
| 123 | strcat(path, src); |
| 124 | |
| 125 | while (1) |
| 126 | { |
| 127 | if (path[i] == 0) |
| 128 | break; |
| 129 | |
| 130 | if (path[i] == '/') |
| 131 | path[i] = '\\'; |
| 132 | |
| 133 | i++; |
| 134 | } |
| 135 | |
| 136 | return path; |
| 137 | } |
| 138 | |
| 139 | /* This function can convert the path in rt-thread/dfs to the path in windows */ |
| 140 | char * dfs_win32_dirdup(char * path) |
no test coverage detected