mirror of
https://github.com/reactos/reactos.git
synced 2025-01-04 21:38:43 +00:00
34cc922d57
svn path=/trunk/; revision=4769
17 lines
245 B
C
17 lines
245 B
C
/*
|
|
* $Id: memset.c,v 1.1 2003/05/27 18:56:15 hbirr Exp $
|
|
*/
|
|
|
|
#include <string.h>
|
|
|
|
void* memset(void* src, int val, size_t count)
|
|
{
|
|
char *char_src = (char *)src;
|
|
|
|
while(count>0) {
|
|
*char_src = val;
|
|
char_src++;
|
|
count--;
|
|
}
|
|
return src;
|
|
}
|