xref: /titanic_44/usr/src/lib/libast/common/man/strdup.3 (revision 4eaa471005973e11a6110b69fe990530b3b95a38)
.fp 5 CW .. .nr ;G \\n(.f .Af "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7" "\\$8" "\\$9" \\*(;G .. .aF 5 \\n(.f "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7" .. .aF 5 1 "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7" .. .aF 1 5 "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7" ..

0

..

..

STRDUP 3
NAME
strdup - duplicate nul-terminated string
SYNOPSIS
.L "char* strdup(char* s)"
DESCRIPTION
strdup copies the nul-terminated string s to a new location provided by malloc (3) and returns a pointer to the new copy. 0 is returned if malloc (3) failed.
"SEE ALSO"
malloc(3), memdup(3)