MicrOS
memset.c File Reference
#include "../string.h"

Functions

void * memset (void *buffer, int value, size_t size)
 Fill block of memory. More...
 

Function Documentation

◆ memset()

void* memset ( void *  buffer,
int  value,
size_t  size 
)

Fill block of memory.

Sets the first num bytes of the block of memory pointed by ptr to the specified value (interpreted as an unsigned char).

Parameters
bufferPointer to the block of memory to fill.
valueValue to be set. The value is passed as an int, but the function fills the block of memory using the unsigned char conversion of this value.
sizeNumber of bytes to be set to the value.
Returns
Ptr is returned.