Sign in
android
/
platform
/
external
/
syslinux
/
refs/heads/oreo-mr1-release
/
.
/
com32
/
lib
/
lstrdup.c
blob: d11efe7e4c66da13378f5db63c44df64878c983e [
file
] [
log
] [
blame
] [
edit
]
/*
* lstrdup.c
*/
#include
<string.h>
#include
<stdlib.h>
#include
<com32.h>
char
*
lstrdup
(
const
char
*
s
)
{
int
l
=
strlen
(
s
)
+
1
;
char
*
d
=
lmalloc
(
l
);
if
(
d
)
memcpy
(
d
,
s
,
l
);
return
d
;
}