mirror of
https://github.com/rfivet/stm32bringup.git
synced 2024-12-18 14:56:22 -05:00
15 lines
236 B
C
15 lines
236 B
C
|
/* memset.c -- fill memory area */
|
||
|
/* Copyright (c) 2021 Renaud Fivet */
|
||
|
|
||
|
#include <string.h>
|
||
|
|
||
|
void *memset( void *s, int c, size_t n) {
|
||
|
char *p = s ;
|
||
|
while( n--)
|
||
|
*p++ = c ;
|
||
|
|
||
|
return s ;
|
||
|
}
|
||
|
|
||
|
/* end of memset.c */
|