mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 13:01:40 +00:00
18 lines
285 B
C
18 lines
285 B
C
|
|
#include <string.h>
|
|
|
|
#ifdef _MSC_VER
|
|
#pragma function(memset)
|
|
#endif /* _MSC_VER */
|
|
|
|
void* __cdecl memset(void* src, int val, size_t count)
|
|
{
|
|
char *char_src = (char *)src;
|
|
|
|
while(count>0) {
|
|
*char_src = val;
|
|
char_src++;
|
|
count--;
|
|
}
|
|
return src;
|
|
}
|