#include <stdio.h>
#include "SDL.h"
Go to the source code of this file.
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 29 of file testiconv.c.
References i, SDL_arraysize, SDL_free, SDL_iconv_string, SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO, SDL_LogError, SDL_LogSetPriority, SDL_memcmp, SDL_strlen, and widelen().
58 file = fopen(argv[1],
"rb");
64 while (fgets(buffer,
sizeof(buffer), file)) {
74 if (!test[1] ||
SDL_memcmp(test[1], ucs4, len) != 0) {
83 fputs(test[0], stdout);
87 return (errors ? errors + 1 : 0);
static size_t widelen(char *data)
return Display return Display Bool Bool int int int return Display XEvent Bool(*) XPointer return Display return Display Drawable _Xconst char unsigned int unsigned int return Display Pixmap Pixmap XColor XColor unsigned int unsigned int return Display _Xconst char char int char return Display Visual unsigned int int int char unsigned int unsigned int in i)
#define SDL_LogSetPriority
#define SDL_arraysize(array)
◆ widelen()
static size_t widelen |
( |
char * |
data | ) |
|
|
static |
Definition at line 18 of file testiconv.c.
Referenced by main().
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data