We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ce0e2c commit ae2d414Copy full SHA for ae2d414
components/libc/compilers/dlib/syscalls.c
@@ -6,6 +6,7 @@
6
* Change Logs:
7
* Date Author Notes
8
* 2021-02-13 Meco Man implement exit() and abort()
9
+ * 2021-02-20 Meco Man add system()
10
*/
11
#include <rtthread.h>
12
@@ -16,3 +17,9 @@ void __exit (int status)
16
17
__rt_libc_exit(status);
18
while(1);
19
}
20
+
21
+int system(const char * string)
22
+{
23
+ extern int __rt_libc_system(const char *string);
24
+ return __rt_libc_system(string);
25
+}
0 commit comments