DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

strdup(3)





NAME

       strdup - duplicate nul-terminated string


SYNOPSIS

       char* strdup(char* s)


DESCRIPTION

       strdup copies the nul-terminated string s to a new location provided by
       malloc(3) and returns a pointer to the new copy.  0 is returned if mal-
       loc(3) failed.


SEE ALSO

       malloc(3), memdup(3)

                                                                     STRDUP(3)

Man(1) output converted with man2html