welibc
A clear, secure, and well documented standard C library
|
Defines the memset function. More...
#include <string.h>
Go to the source code of this file.
Functions | |
void * | memset (void *s, int c, size_t n) |
Copies the value c into the first n characters of object s. More... | |
Defines the memset function.
Definition in file memset.c.
void* memset | ( | void * | s, |
int | c, | ||
size_t | n | ||
) |
Copies the value c into the first n characters of object s.
*s | Destination object having its memory set |
c | Value being written |
n | Number of characters to be set |
The memset function copies the value c (converted to an unsigned char) into each of the first n characters of the object pointed to by s.
Definition at line 52 of file memset.c.
Referenced by strncpy().