4.4BSD/usr/share/man/cat3/strdup.0

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

STRDUP(3)                   BSD Programmer's Manual                  STRDUP(3)

NNAAMMEE
     ssttrrdduupp - save a copy of a string

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

     _c_h_a_r _*
     ssttrrdduupp(_c_o_n_s_t _c_h_a_r _*_s_t_r);

DDEESSCCRRIIPPTTIIOONN
     The ssttrrdduupp() function 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 function free(3).

     If insufficient memory is available, NULL is returned.

SSEEEE AALLSSOO
     malloc(3) free(3)

HHIISSTTOORRYY
     The ssttrrdduupp() function first appeared in 4.4BSD.

4.4BSD                           June 9, 1993                                1