memset

Writes a specified character to a memory block

#include <memory.h>
void *memset (
        const void *s,
        long c,
        size_t n
)

Arguments

s Pointer to destination memory block
c Fill character
n Number of characters

Return Value

s, a pointer to the destination memory block is returned.

Explanation

The first n bytes of the memory block pointed to by s are filled with the character c.