projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
This commit was manufactured by cvs2svn to create tag 'FreeBSD-release/1.0'.
[unix-history]
/
gnu
/
libexec
/
uucp
/
libuucp
/
strdup.c
/* strdup.c
Duplicate a string into memory. */
#include
"uucp.h"
char
*
strdup
(
z
)
const char
*
z
;
{
size_t
csize
;
char
*
zret
;
csize
=
strlen
(
z
) +
1
;
zret
=
malloc
(
csize
);
if
(
zret
!=
NULL
)
memcpy
(
zret
,
z
,
csize
);
return
zret
;
}