/* 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-dk4loc.ctr */ /** @file test-dk4loc.c The test-dk4loc module. */ #line 1 "test-dk4loc.ctr" #include #include "dk4loc.h" #ifndef DK4MEM_H_INCLUDED #include "dk4mem.h" #endif #line 14 "test-dk4loc.ctr" dkChar langbuf[16]; dkChar regbuf[16]; int main(void) { dk4_er_t er; int encoding; int res; #line 29 "test-dk4loc.ctr" #line 30 "test-dk4loc.ctr" dk4error_init(&er); #line 32 "test-dk4loc.ctr" res = dk4loc_get_settings( langbuf, DK4_SIZEOF(langbuf,dkChar), regbuf, DK4_SIZEOF(regbuf,dkChar), &encoding, &er ); #line 38 "test-dk4loc.ctr" if (0 != res) { #line 39 "test-dk4loc.ctr" printf("Einstellungen gefunden.\n"); #if DK4_ON_WINDOWS printf("Language: \"%ls\"\n", langbuf); printf("Region: \"%ls\"\n", regbuf); printf("Encoding: %d\n", encoding); #else printf("Language: \"%s\"\n", langbuf); printf("Region: \"%s\"\n", regbuf); printf("Encoding: %d\n", encoding); #endif } else { #line 50 "test-dk4loc.ctr" printf("Einstellungen nicht gefunden.\n"); printf("Fehlercode: %d\n", er.ec); } #line 54 "test-dk4loc.ctr" #line 55 "test-dk4loc.ctr" return 0; }