xref: /titanic_41/usr/src/lib/libast/common/man/strdup.3 (revision cde2885fdf538266ee2a3b08dee2d5075ce8fa2b)
.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)