26#include "wine/unicode.h"
29#define min(a,b) (((a) < (b)) ? (a) : (b))
37 if (
ret || !*str1)
return ret;
46 for ( ;
n > 0;
n--, str1++, str2++)
54 for ( ;
n > 0;
n--, str1++, str2++)
64 while (*p1 && *p2 && *p1 == *p2) { p1++; p2++; }
77 register unsigned long int cutoff;
78 register unsigned int cutlim;
79 register unsigned long int i;
85 if (base < 0 || base == 1 || base > 36)
return 0;
128 for (;
c !=
'\0';
c = *++
s)
132 if (
c >=
'0' &&
c <=
'9')
141 if (
i > cutoff || (
i == cutoff &&
c > cutlim))
163 ? -((
unsigned long int) (
LONG_MIN + 1)) + 1
174 return negative ? -
i :
i;
183 if (save - nptr >= 2 &&
toupperW (save[-1]) ==
'X'
185 *endptr = (
WCHAR *)&save[-1];
188 *endptr = (
WCHAR *)nptr;
198 register unsigned long int cutoff;
199 register unsigned int cutlim;
200 register unsigned long int i;
206 if (base < 0 || base == 1 || base > 36)
return 0;
213 if (!*
s)
goto noconv;
249 for (;
c !=
'\0';
c = *++
s)
253 if (
c >=
'0' &&
c <=
'9')
262 if (
i > cutoff || (
i == cutoff &&
c > cutlim))
287 return negative ? -
i :
i;
296 if (save - nptr >= 2 &&
toupperW (save[-1]) ==
'X'
298 *endptr = (
WCHAR *)&save[-1];
301 *endptr = (
WCHAR *)nptr;
312 int i, left_align = 0,
width = 0,
max = 0;
319 if (*
format ==
'-') left_align = 1;
365 unsigned int written = 0;
367 char bufa[512], fmtbufa[64], *fmta;
371 while (*iter && *iter !=
'%')
389 while (*iter ==
'0' ||
398 char *buffiter = bufa;
400 sprintf(buffiter,
"%d", fieldlen);
402 *fmta++ = *buffiter++;
417 char *buffiter = bufa;
419 sprintf(buffiter,
"%d", fieldlen);
421 *fmta++ = *buffiter++;
428 if (*iter ==
'h' || *iter ==
'l')
435 static const WCHAR none[] = {
'(',
'n',
'u',
'l',
'l',
')',0 };
437 size_t remaining = written <
len ?
len - written : 0;
452 size_t remaining = written <
len ?
len - written : 0;
469 char *bufaiter = bufa;
474 sprintf(bufaiter,
"%0*lX", 2 * (
int)
sizeof(
void*),
481 if (*iter ==
'a' || *iter ==
'A' ||
482 *iter ==
'e' || *iter ==
'E' ||
483 *iter ==
'f' || *iter ==
'F' ||
484 *iter ==
'g' || *iter ==
'G')
512 return written <
len ? (
int)written : -1;
GLuint GLuint GLsizei count
GLint GLint GLsizei width
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
#define memcpy(s1, s2, n)
#define sprintf(buf, format,...)
static __ms_va_list valist
#define strncmpiW(s1, s2, n)
#define memicmpW(s1, s2, n)
#define strtoulW(s1, s2, b)