ReactOS  0.4.14-dev-599-g2d4d3f5
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 
8 void* __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
GLuint GLfloat * val
Definition: glext.h:7180
GLenum src
Definition: glext.h:6340
void *__cdecl memset(void *src, int val, size_t count)
Definition: memset.c:8