uniLoader/lib/string/strdup.c
Ivaylo Ivanov a1be36ae02 EXPERIMENTAL: Partially implement NewLib
Signed-off-by: Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>
2023-07-19 19:37:17 +03:00

14 lines
178 B
C

#ifndef _REENT_ONLY
#include <reent.h>
#include <stdlib.h>
#include <string.h>
char *
strdup (const char *str)
{
return _strdup_r (_REENT, str);
}
#endif /* !_REENT_ONLY */