#include <apitest.h>
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
#include <math.h>
#include <stdarg.h>
#include <windows.h>
Go to the source code of this file.
|
#define | ok_str(x, y) ok(strcmp(x, y) == 0, "got '%s', expected '%s'\n", x, y); |
|
#define | ok_int(x, y) ok(x == y, "got %d, expected %d\n", x, y); |
|
#define | sprintf(buf, format, ...) my_sprintf(buf, format, __VA_ARGS__); |
|
#define | swprintf(buf, format, ...) my_swprintf((wchar_t*)buf, format, __VA_ARGS__); |
|
◆ ok_int
◆ ok_str
◆ sprintf
◆ swprintf
◆ STRING
◆ my_sprintf()
Definition at line 28 of file sprintf.c.
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
GLenum GLuint GLenum GLsizei const GLchar * buf
int(* p_vsprintf)(char *buf, const char *fmt, va_list argptr)
◆ my_swprintf()
Definition at line 42 of file sprintf.c.
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
GLenum GLuint GLenum GLsizei const GLchar * buf
_CRTIMP int __cdecl _vsnwprintf(wchar_t *_Dest, size_t _Count, const wchar_t *_Format, va_list _Args)
◆ START_TEST()
Definition at line 508 of file sprintf.c.
int(* p_vsprintf)(char *buf, const char *fmt, va_list argptr)
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
#define GetProcAddress(x, y)
◆ test_c()
◆ test_d()
◆ test_e()
◆ test_f()
Definition at line 360 of file sprintf.c.
391 ok_str(
buffer,
"0.333333333333333310000000000000000000000000000000000000000000");
394 ok_str(
buffer,
"0.33333333333333331000000000000000000000000000000000000000000000000000000000000000");
#define sprintf(buf, format,...)
Referenced by START_TEST().
◆ test_n()
Definition at line 336 of file sprintf.c.
353 len64 = 0x0123456781234567
ULL;
355 ok(len64 == 0x123456700000004ULL,
" ");
#define sprintf(buf, format,...)
Referenced by START_TEST().
◆ test_o()
◆ test_other()
◆ test_p()
Definition at line 242 of file sprintf.c.
#define sprintf(buf, format,...)
__kernel_ptrdiff_t ptrdiff_t
Referenced by START_TEST().
◆ test_s()
◆ test_u()
◆ test_x()
◆ test_Z()
Definition at line 457 of file sprintf.c.
463 string.Buffer =
"Test\0Hallo";
465 string.MaximumLength = 5;
485 string.Buffer = (
char*)
L"Test\0Hallo";
487 string.MaximumLength = 10;
490 string.Buffer = (
char*)
L"test";
492 string.MaximumLength = 15;
#define sprintf(buf, format,...)
static char * string(char *buf, char *end, const char *s, int len, int field_width, int precision, int flags)
int _snprintf(char *buf, size_t cnt, const char *fmt,...)
Referenced by START_TEST().
◆ p_vsprintf