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

Function cmd_readwrite

examples/file/readwrite.c:154–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152FINSH_FUNCTION_EXPORT(readwrite, perform file read and write test);
153
154static void cmd_readwrite(int argc, char *argv[])
155{
156 char* filename;
157
158 if(argc == 2)
159 {
160 filename = argv[1];
161 }
162 else
163 {
164 rt_kprintf("Usage: readwrite [file_path]\n");
165 return;
166 }
167 readwrite(filename);
168}
169MSH_CMD_EXPORT_ALIAS(cmd_readwrite, readwrite, perform file read and write test);
170#endif /* RT_USING_FINSH */

Callers

nothing calls this directly

Calls 2

rt_kprintfFunction · 0.85
readwriteFunction · 0.85

Tested by

no test coverage detected