/* WARNING: This file was generated by dkct. Changes you make here will be lost if dkct is run again! You should modify the original source and run dkct on it. Original source: test-dk4enc.ctr */ /** @file test-dk4enc.c The test-dk4enc module. */ #line 1 "test-dk4enc.ctr" #include "dk4conf.h" #include "dk4types.h" #include "dk4error.h" #include "dk4enc.h" #if DK4_CHAR_SIZE > 1 int wmain(int argc, wchar_t *argv[]) #else int main(int argc, char *argv[]) #endif { dk4_er_t er; int enc = 0; int bom = 0; if (argc > 1) { dk4error_init(&er); if (0 != dk4enc_find(&enc, &bom, argv[1], &er)) { printf("Encoding: %d\nBOM: %d\n", enc, bom); } else { printf("Fehlgeschlagen, Grund: %d\n", er.ec); } } return 0; }