ReactOS  0.4.13-dev-257-gfabbd7c
utils.c File Reference
#include <windows.h>
Include dependency graph for utils.c:

Go to the source code of this file.

Functions

VOID htoa (unsigned int val, char *buf)
 
VOID strcpy_ (char *dst, const char *src)
 
VOID strcpyw_ (wchar_t *dst, wchar_t *src)
 

Variables

static const char hexvals [] = {'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'}
 

Function Documentation

◆ htoa()

VOID htoa ( unsigned int  val,
char buf 
)

Definition at line 10 of file utils.c.

11 {
12  int i;
13  buf += 7;
14 
15  for (i=0;i<8;i++)
16  {
17  *buf-- = hexvals[val & 0x0000000F];
18  val = val >> 4;
19  }
20 }
static const char hexvals[]
Definition: utils.c:9
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
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
GLuint GLfloat * val
Definition: glext.h:7180

Referenced by HandlePrintRect(), HandlePrintReturnHex(), and HandleSetHandlePrintHex().

◆ strcpy_()

VOID strcpy_ ( char dst,
const char src 
)

Definition at line 23 of file utils.c.

24 {
25  const char* p = src;
26  while ((*dst++ = *p++)) {}
27 }
GLenum src
Definition: glext.h:6340
GLenum GLenum dst
Definition: glext.h:6340
GLfloat GLfloat p
Definition: glext.h:8902

Referenced by HandleSetHandlePrintHex().

◆ strcpyw_()

VOID strcpyw_ ( wchar_t dst,
wchar_t src 
)

Definition at line 29 of file utils.c.

30 {
31  const wchar_t* p = src;
32  while ((*dst++ = *p++)) {}
33 }
GLenum src
Definition: glext.h:6340
GLenum GLenum dst
Definition: glext.h:6340
GLfloat GLfloat p
Definition: glext.h:8902

Referenced by HandleSetHandlePrintHex().

Variable Documentation

◆ hexvals

const char hexvals[] = {'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'}
static

Definition at line 9 of file utils.c.

Referenced by htoa().