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