home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / ansi / string / strncpy.txh < prev    next >
Encoding:
Text File  |  1995-07-10  |  381 b   |  25 lines

  1. @node strncpy, string
  2. @subheading Syntax
  3.  
  4. @example
  5. #include <string.h>
  6.  
  7. char *strncpy(char *s1, const char *s2, size_t max);
  8. @end example
  9.  
  10. @subheading Description
  11.  
  12. This function copies up to @var{max} characters of @var{s2} into @var{s1}.
  13.  
  14. @subheading Return Value
  15.  
  16. @var{s1}
  17.  
  18. @subheading Example
  19.  
  20. @example
  21. char buf[100];
  22. strcpy(buf, arg, 99);
  23. @end example
  24.  
  25.