src/projects/libc/string/memset.c
void* memset(void* bufptr, int value, size_t size) {
	unsigned char* buf = (unsigned char*) bufptr;
	for (size_t i = 0; i < size; i++)
		buf[i] = (unsigned char) value;
	return bufptr;
}
/*
 * Fill a block of memory.
 *
 * Sets the first size bytes of the block of memory pointed to by bufptr to the specified value (interpreted as an
 * unsigned char), returning bufptr.
 */
Fill a block of memory.
Sets the first size bytes of the block of memory pointed to by bufptr to the specified value (interpreted as an
unsigned char), returning bufptr.
Fill a block of memory . Sets the first size bytes of the block of memory pointed to by bufptr to the specified value ( interpreted as an unsigned char ) returning bufptr .
void* memset(void* bufptr, int value, size_t size) {
	unsigned char* buf = (unsigned char*) bufptr;
	for (size_t i = 0; i < size; i++)
		buf[i] = (unsigned char) value;
	return bufptr;
}
void * memset ( void * bufptr , int value , size_t size ) { unsigned char * buf = ( unsigned char * ) bufptr ; for ( size_t i = 0 ; i < size ; i ++ ) buf [ i ] = ( unsigned char ) value ; return bufptr ; }
Fill a block of memory.
Fill a block of memory .