memset

Sets the bytes of a memory block to an initialising character.

void * memset (void * dest, int c, size_t length);

Required Header
<string.h>

Return Value

This function returns a pointer to the destination memory block.

Parameters

dest

  The destination memory block

c

  The character to initialise the block to

length

  The length of the memory block

Remarks

The memset function sets all the bytes in the dest buffer to the character c.

String

See Also    bcopy, memccpy, memchr, memcmp, memcpy, _memicmp, memmove, strcpy, strncpy