memset

This macro fills a specified area of memory with a character. The memset macro writes the character byte_value into the contents of the first count bytes in memory, beginning with the byte pointed to by dest.

Syntax:

char *memset (dest, byte_value, count)
char *
dest;
char
byte_value;
int count;

where:

dest                      A character pointer to the memory location, to which the memset macro will write a string of repeating characters.

byte_value             A character variable specifying the number of times that a character will be written consecutively, beginning at dest.

count                     An integer variable specifying the number of times byte_value is to be written to the area of memory starting at dest.

Return Value

char*                     Points to the destination location that is one byte beyond the last byte written to.

Rules

None