ReactOS 0.4.15-dev-7934-g1dc8d80
strset.c
Go to the documentation of this file.
1/*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS system libraries
4 * FILE: lib/sdk/crt/string/strset.c
5 * PURPOSE: Implementation of _strnset and _strset
6 * PROGRAMER: Unknown
7 * UPDATE HISTORY:
8 * 25/11/05: Added license header
9 */
10
11#if defined(__GNUC__) && !defined(__clang__)
12#define __int64 long long
13#elif defined(_MSC_VER)
14#pragma warning(disable: 4164)
15#pragma function(_strset)
16#endif
17
18#ifdef _WIN64
19typedef unsigned __int64 size_t;
20#else
21typedef unsigned int size_t;
22#endif
23
24/*
25 * @implemented
26 */
27char* _strnset(char* szToFill, int szFill, size_t sizeMaxFill)
28{
29 char *t = szToFill;
30 int i = 0;
31 while (*szToFill != 0 && i < (int) sizeMaxFill)
32 {
33 *szToFill = szFill;
34 szToFill++;
35 i++;
36
37 }
38 return t;
39}
40
41/*
42 * @implemented
43 */
44char* _strset(char* szToFill, int szFill)
45{
46 char *t = szToFill;
47 while (*szToFill != 0)
48 {
49 *szToFill = szFill;
50 szToFill++;
51
52 }
53 return t;
54}
55
#define __int64
Definition: basetyps.h:16
GLdouble GLdouble t
Definition: gl.h:2047
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
unsigned int size_t
Definition: strset.c:21
char * _strset(char *szToFill, int szFill)
Definition: strset.c:44
char * _strnset(char *szToFill, int szFill, size_t sizeMaxFill)
Definition: strset.c:27