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