1
0
mirror of https://github.com/rfivet/stm32bringup.git synced 2024-12-18 06:46:23 -05:00
stm32bringup/memset.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 */