delorie.com/djgpp/doc/libc/libc_569.html | search |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
#include <string.h> void *memset(void *buffer, int ch, size_t num); |
This function stores num copies of ch, starting at buffer. This is often used to initialize objects to a known value, like zero.
Note that, although ch is declared int
in the prototype,
memset
only uses its least-significant byte to fill buffer.
buffer
ANSI/ISO C | C89; C99 |
POSIX | 1003.2-1992; 1003.1-2001 |
struct tm t; memset(&t, 0, sizeof(t)); |
webmaster | delorie software privacy |
Copyright © 2004 | Updated Apr 2004 |