This is used to fill a block of memory with the specified value. Here is its syntax:
void *memset(void *ptr, int v, size_t n);
Here, ptr points at the memory address to be filled, v is the value to be filled in the memory block, and n is the number of bytes to be filled, starting at the location of the pointer.