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 f9ad7f1 commit 6ee0d45Copy full SHA for 6ee0d45
components/libc/compilers/newlib/minilib.c
@@ -16,16 +16,3 @@ void * _sbrk_r(struct _reent *ptr, ptrdiff_t incr)
16
/* no use this routine to get memory */
17
return RT_NULL;
18
}
19
-
20
-#ifdef RT_USING_HEAP
21
-char *strdup(const char *s)
22
-{
23
- size_t len = strlen(s) + 1;
24
- char *tmp = (char *)rt_malloc(len);
25
26
- if(!tmp) return NULL;
27
28
- rt_memcpy(tmp, s, len);
29
- return tmp;
30
-}
31
-#endif /*RT_USING_HEAP*/
0 commit comments