#include <string.h>
#include <unistd.h>
#include <signal.h>
#include "gwlib/gwlib.h"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 69 of file test_charset.c.
References charset_gsm_to_utf8(), charset_utf8_to_gsm(), debug(), gwlib_init(), gwlib_shutdown(), octstr_append_from_hex(), octstr_compare(), octstr_create, octstr_destroy(), octstr_dump, octstr_duplicate, and panic.
78 debug(
"", 0,
"Orginal GSM charset data:");
81 debug(
"", 0,
"Same data mapped to URT-8 charset:");
84 debug(
"", 0,
"Same data mapped back again to GSM charset:");
88 panic(0,
"Data is not the same after re-mapping!");
90 debug(
"",0,
"Data is same, ok.");
void octstr_append_from_hex(Octstr *ostr, char *hex)
void charset_utf8_to_gsm(Octstr *ostr)
#define octstr_duplicate(ostr)
#define octstr_dump(ostr, level,...)
void octstr_destroy(Octstr *ostr)
#define octstr_create(cstr)
void debug(const char *place, int err, const char *fmt,...)
void gwlib_shutdown(void)
int octstr_compare(const Octstr *ostr1, const Octstr *ostr2)
void charset_gsm_to_utf8(Octstr *ostr)