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