.\" Copyright (c) 1990 The Regents of the University of California.
.\" %sccs.include.redist.man%
.\" @(#)strdup.3 5.1 (Berkeley) %G%
strdup \- save a copy of a string
allocates sufficient memory for a copy of the string
does the copy, and returns a pointer to it.
The pointer may subsequently be used as an argument to the function
returns NULL if unable to allocate the necessary memory.