1
0
mirror of https://github.com/rfivet/stm32bringup.git synced 2024-12-21 16:26:35 -05:00
stm32bringup/memset.c

15 lines
236 B
C
Raw Normal View History

/* 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 */