Utility Functions and C Language Reference > C Language Reference > Alphabetical List of Functions > memset

memset

Example: memset Buffer Manipulation Functions

Sets n bytes of a buffer to a given character.

void *memset( void *buffer, int c, size_t n); 

buffer Pointer to block of data to be filled with c.
c The character placed in buffer.
n The number of bytes in buffer set as c.

Return Values

Returns buffer, pointer to block of data to be filled with c.

For memset details, refer to your C language documentation.