Standard C Functions


memset


Syntax

#include <string.h>
void *memset(void* dst, int c, size_t count);

Arguments

dst      pointer to the destination to be written to
c        character (byte) data to be written
count    number of characters to be written

Return Value

The pointer to the destination

Description

It writes the single character (byte) specified by c over and over to the area specified by dst for the number of bytes specified by count.