mirror of
https://github.com/vivier/EMILE.git
synced 2024-12-21 18:30:20 +00:00
17 lines
236 B
C
17 lines
236 B
C
/*
|
|
*
|
|
* (c) 2004,2005 Laurent Vivier <Laurent@lvivier.info>
|
|
*
|
|
*/
|
|
|
|
#include <sys/types.h>
|
|
|
|
void* memset(void* s, int c, size_t n)
|
|
{
|
|
int i;
|
|
char *ss = (char*)s;
|
|
|
|
for (i=0;i<n;i++) ss[i] = c;
|
|
return s;
|
|
}
|