Skip to content

Commit ae2d414

Browse files
committed
add system() for IAR
1 parent 0ce0e2c commit ae2d414

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

components/libc/compilers/dlib/syscalls.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* Change Logs:
77
* Date Author Notes
88
* 2021-02-13 Meco Man implement exit() and abort()
9+
* 2021-02-20 Meco Man add system()
910
*/
1011
#include <rtthread.h>
1112

@@ -16,3 +17,9 @@ void __exit (int status)
1617
__rt_libc_exit(status);
1718
while(1);
1819
}
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

Comments
 (0)