 |
C251 User's Guide |
 |
|
|
|
|
memset
| Summary |
|
| Description |
The memset function sets the first len
bytes in buf to c.
|
| Return Value |
The memset function returns dest.
|
| See Also | fmemset, memccpy, memchr, memcmp, memcpy, memmove, xmemset |
| Example |
#include <string.h>
#include <stdio.h> /* for printf */
void tst_memset (void) {
char buf [10];
memset (buf, '\0', sizeof (buf));
/* fill buffer with null characters */
}
|
|
|
|