Skip to content

Commit 6ee0d45

Browse files
committed
update
1 parent f9ad7f1 commit 6ee0d45

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

components/libc/compilers/newlib/minilib.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,3 @@ void * _sbrk_r(struct _reent *ptr, ptrdiff_t incr)
1616
/* no use this routine to get memory */
1717
return RT_NULL;
1818
}
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

Comments
 (0)