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