Returns a pointer to a duplicate string.
char* INKstrdup (const char
*
str
)
is a pointer
to the null-terminated string to duplicate.str
Returns a pointer to a new string that's a duplicate of
the string pointed to by
. The memory for the
new string is allocated using str
INKmalloc
and
should be freed by a call to
INKfree
.
A pointer to the duplicated string.
Note | |
---|---|
A valid null-terminated string may not be returned if
the input |