MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / cmd_ln

Function cmd_ln

components/finsh/msh_file.c:185–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183
184#ifdef RT_USING_DFS_V2
185static int cmd_ln(int argc, char **argv)
186{
187 if (argc < 3)
188 {
189 rt_kprintf("Usage: ln target link_name\n");
190 rt_kprintf("Make symbolic link between files.\n");
191 }
192 else
193 {
194 for(int i = 0; i + 3 <= argc; i ++)
195 {
196 dfs_file_symlink(argv[1], argv[2 + i]);
197 }
198 }
199
200 return 0;
201}
202MSH_CMD_EXPORT_ALIAS(cmd_ln, ln, Make symbolic link between files);
203
204static int cmd_link(int argc, char **argv)

Callers

nothing calls this directly

Calls 2

rt_kprintfFunction · 0.85
dfs_file_symlinkFunction · 0.85

Tested by

no test coverage detected