mirror of
https://github.com/reactos/reactos.git
synced 2024-09-06 19:02:32 +00:00
19 lines
285 B
C
19 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;
|
|
}
|