mirror of
https://github.com/reactos/reactos.git
synced 2024-11-04 13:52:30 +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;
|
|
}
|