home *** CD-ROM | disk | FTP | other *** search
- @node memset, memory
- @subheading Syntax
-
- @example
- #include <string.h>
-
- void *memset(void *buffer, int ch, size_t num);
- @end example
-
- @subheading Description
-
- This function stores @var{num} copies of @var{ch}, starting at
- @var{buffer}. This is often used to initialize objects to a known
- value.
-
- @subheading Return Value
-
- @var{buffer}
-
- @subheading Example
-
- @example
- struct tm t;
- memset(&t, 0, sizeof(t));
- @end example
-
-