#include <stdarg.h>
#include "wine/test.h"
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
#include "winnls.h"
Go to the source code of this file.
◆ CharLowerTest()
Definition at line 131 of file wsprintf.c.
132{
135
137 {
139 if ((
out >> 16) != 0)
140 {
142 break;
143 }
144 }
145 ok(!failed,
"CharLower failed - 16bit input (0x%0lx) returned 32bit result (0x%0lx)\n",
i,
out);
146}
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
LPSTR WINAPI CharLowerA(_Inout_ LPSTR)
Referenced by START_TEST().
◆ CharUpperTest()
Definition at line 114 of file wsprintf.c.
115{
118
120 {
122 if ((
out >> 16) != 0)
123 {
125 break;
126 }
127 }
128 ok(!failed,
"CharUpper failed - 16bit input (0x%0lx) returned 32bit result (0x%0lx)\n",
i,
out);
129}
LPSTR WINAPI CharUpperA(_Inout_ LPSTR)
Referenced by START_TEST().
◆ START_TEST()
Definition at line 149 of file wsprintf.c.
150{
155}
static void wsprintfATest(void)
static void CharLowerTest(void)
static void CharUpperTest(void)
static void wsprintfWTest(void)
◆ wsprintfATest()
Definition at line 53 of file wsprintf.c.
54{
57 int rc;
58
60 ok(rc == 10,
"wsprintfA length failure: rc=%d error=%d\n",rc,
GetLastError());
62 "wsprintfA zero padded negative value failure: buf=[%s]\n",
buf);
65 {
66 win_skip(
"I64 formats not supported\n" );
67 return;
68 }
70 {
74 }
75}
int strcmp(const char *String1, const char *String2)
ACPI_SIZE strlen(const char *String)
int WINAPI lstrcmpA(LPCSTR str1, LPCSTR str2)
GLenum GLuint GLenum GLsizei const GLchar * buf
static const struct @1736 i64_formats[]
DWORD WINAPI GetLastError(void)
int WINAPIV wsprintfA(_Out_ LPSTR, _In_ _Printf_format_string_ LPCSTR,...)
Referenced by START_TEST().
◆ wsprintfWTest()
Definition at line 77 of file wsprintf.c.
78{
79 static const WCHAR fmt_010ld[] = {
'%',
'0',
'1',
'0',
'l',
'd',
'\0'};
80 static const WCHAR res_010ld[] = {
'-',
'0',
'0',
'0',
'0',
'0',
'0',
'0',
'0',
'1',
'\0'};
81 static const WCHAR fmt_I64x[] = {
'%',
'I',
'6',
'4',
'x',0};
84 int rc;
85
88 {
89 win_skip(
"wsprintfW is not implemented\n");
90 return;
91 }
92 ok(rc == 10,
"wsPrintfW length failure: rc=%d error=%d\n",rc,
GetLastError());
94 "wsprintfW zero padded negative value failure\n");
97 {
98 win_skip(
"I64 formats not supported\n" );
99 return;
100 }
102 {
106 ok(rc ==
lstrlenW(
res),
"%u: wsprintfW length failure: rc=%d\n",
i, rc);
108 }
109}
#define ERROR_CALL_NOT_IMPLEMENTED
#define MultiByteToWideChar
int WINAPI lstrcmpW(LPCWSTR str1, LPCWSTR str2)
int WINAPIV wsprintfW(_Out_ LPWSTR, _In_ _Printf_format_string_ LPCWSTR,...)
Referenced by START_TEST().
◆ fmt
const struct { ... } i64_formats[] |
Initial value:=
{
{
"%I64X", ((
ULONGLONG)0x12345 << 32) | 0x67890a,
"123450067890A" },
{
"%I32X", ((
ULONGLONG)0x12345 << 32) | 0x67890a,
"67890A" },
{
"%I64d", (
ULONGLONG)543210 * 1000000,
"543210000000" },
{
"%I64X", (
LONGLONG)-0x12345,
"FFFFFFFFFFFEDCBB" },
{
"%I32x", (
LONGLONG)-0x12345,
"fffedcbb" },
{
"%I64u", (
LONGLONG)-123,
"18446744073709551493" },
{
"%Ix", ((
ULONGLONG)0x12345 << 32) | 0x67890a,
"67890a" },
{
"%Ix", (
LONGLONG)-0x12345,
"fffedcbb" },
{
"%p", (
LONGLONG)-0x12345,
"FFFEDCBB" },
}
Referenced by wsprintfATest(), and wsprintfWTest().
◆ res
◆ value