mirror of
https://github.com/rfivet/stm32bringup.git
synced 2024-12-21 16:26:35 -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 */
|