STRDUP C-3

NAME

strdup - return duplicate copy of string

SYNOPSIS

char *strdup (string)

char *string;

char *set;

DESCRIPTION

Strdup returns a pointer to a duplicate copy of the string pointed to by string. Strdup allocates space for the copy with malloc(3).

DIAGNOSTICS

Strdup returns NULL if it cannot allocate space for a copy of string.

NOTES

Strdup is present only on systems that do not already have it in their standard C library.