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

  1. @node memset, memory
  2. @subheading Syntax
  3.  
  4. @example
  5. #include <string.h>
  6.  
  7. void *memset(void *buffer, int ch, size_t num);
  8. @end example
  9.  
  10. @subheading Description
  11.  
  12. This function stores @var{num} copies of @var{ch}, starting at
  13. @var{buffer}.  This is often used to initialize objects to a known
  14. value. 
  15.  
  16. @subheading Return Value
  17.  
  18. @var{buffer}
  19.  
  20. @subheading Example
  21.  
  22. @example
  23. struct tm t;
  24. memset(&t, 0, sizeof(t));
  25. @end example
  26.  
  27.