home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 200-299 / ff218.lzh / EdLib / man / StrDup < prev    next >
Text File  |  1989-06-04  |  576b  |  31 lines

  1. STRDUP(3)                  Library Functions                 STRDUP(3)
  2.  
  3.  
  4.  
  5. NAME
  6.      strdup - duplicate a given string
  7.  
  8. SYNOPSIS
  9.      #include <edlib.h>
  10.  
  11.      char *strdup(str)
  12.      char *str;
  13.  
  14. DESCRIPTION
  15.      Strdup allocates enough memory to hold the given string, and
  16.      copies the string to the new space. It then returns a pointer
  17.      to the new string.
  18.  
  19. DIAGNOSTICS
  20.      If there is not enough memory for a new string, then strdup
  21.      returns a null and sets the external variable errno to ENOMEM.
  22.  
  23. AUTHOR
  24.      Edwin Hoogerbeets 20/03/89
  25.  
  26. SEE ALSO
  27.      strcmp(3)
  28.  
  29.  
  30.  
  31.