/* ---------------------------------------------------------------------------- * ujconv.c * ---------------------------------------------------------------------------- * Mastering programmed by YAMASHINA Hio * * Copyright 2008 YAMASHINA Hio * ---------------------------------------------------------------------------- * $Id$ * ------------------------------------------------------------------------- */ #include "unijp.h" #include #include #include #include #define UJCONV_VERSION "0.01" static void print_encodings(void); static void print_usage(void); static void print_version(void); int main(int argc, const char* argv[]) { uj_charcode_t icode; uj_charcode_t ocode; const char* files[10]; int end_of_opts; int nr_files; int i; icode = ujc_auto; ocode = ujc_auto; nr_files = 0; end_of_opts = 0; for( i=1; iname; ++p ) { printf("%s\n", p->name); } return; } static void print_usage(void) { printf("usage: ujconv [options..] [files..]\n"); printf("options:\n"); printf("-f, --from icode\n"); printf("-t, --to ocode\n"); printf("-l, --list list available encodings\n"); printf("-h, --help show this usage\n"); printf("-V, --version show version information\n"); return; } static void print_version(void) { printf("version %s\n", UJCONV_VERSION); printf("libunijp version %s\n", UNIJP_VERSION_STRING); return; } /* ---------------------------------------------------------------------------- * End of File. * ------------------------------------------------------------------------- */