repo.or.cz
/
syslinux-debian
/
hramrach.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add memtest support.
[syslinux-debian/hramrach.git]
/
com32
/
lib
/
lstrdup.c
blob
d11efe7e4c66da13378f5db63c44df64878c983e
1
/*
2
* lstrdup.c
3
*/
4
5
#include <string.h>
6
#include <stdlib.h>
7
#include <com32.h>
8
9
char
*
lstrdup
(
const char
*
s
)
10
{
11
int
l
=
strlen
(
s
) +
1
;
12
char
*
d
=
lmalloc
(
l
);
13
14
if
(
d
)
15
memcpy
(
d
,
s
,
l
);
16
17
return
d
;
18
}