4.3BSD-Reno/share/man/cat3/strdup.0

Compare this file to the similar file:
Show the results in this format:




STRDUP(3)		      1990			STRDUP(3)



NNAAMMEE
     strdup - save a copy of a string

SSYYNNOOPPSSIISS
     ##iinncclluuddee <<ssttrriinngg..hh>>

     cchhaarr **
     ssttrrdduupp((ccoonnsstt cchhaarr **ssttrr));;

DDEESSCCRRIIPPTTIIOONN
     _S_t_r_d_u_p allocates sufficient memory for a copy of the string
     _s_t_r, does the copy, and returns a pointer to it.  The
     pointer may subsequently be used as an argument to the func-
     tion _f_r_e_e(3).

SSEEEE AALLSSOO
     malloc(3)






































Printed 7/27/90               June				1