ReactOS 0.4.15-dev-5666-gc548b97
memset.c
Go to the documentation of this file.
1
2#include <string.h>
3
4#ifdef _MSC_VER
5#pragma function(memset)
6#endif /* _MSC_VER */
7
8void* __cdecl memset(void* src, int val, size_t count)
9{
10 char *char_src = (char *)src;
11
12 while(count>0) {
13 *char_src = val;
14 char_src++;
15 count--;
16 }
17 return src;
18}
#define __cdecl
Definition: accygwin.h:79
GLuint GLuint GLsizei count
Definition: gl.h:1545
GLenum src
Definition: glext.h:6340
GLuint GLfloat * val
Definition: glext.h:7180
#define memset(x, y, z)
Definition: compat.h:39