/* 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-filei.ctr */ /** @file test-filei.c The test-filei module. */ #line 1 "test-filei.ctr" #include #include "dk4filei.h" #include "dk4filei8.h" #include "dk4fileig8.h" #include "dk4fput.h" #include "dk4mem.h" #line 13 "test-filei.ctr" #if DK4_CHAR_SIZE > 1 int wmain(int argc, wchar_t *argv[]) #else int main(int argc, char *argv[]) #endif { dkChar buf[256]; dk4_file_info_t fi; int i; #line 27 "test-filei.ctr" #line 28 "test-filei.ctr" dk4fput_initialize_stdout(); for (i = 1; i < argc; i++) { dk4fputs(argv[i], stdout, NULL); dk4fputc('\n', stdout, NULL); dk4fileinfo_init(&fi); if (dk4fileinfo(&fi, argv[i], NULL)) { #line 34 "test-filei.ctr" if (dk4fileinfo_timestamp(buf, DK4_SIZEOF(buf,dkChar), &fi, 0, 0, NULL)) { dk4fputs(buf, stdout, NULL); dk4fputc('\n', stdout, NULL); #line 37 "test-filei.ctr" } else { #line 38 "test-filei.ctr" } if (dk4fileinfo_type_attributes(buf, sizeof(buf), &fi, NULL)) { dk4fputs(buf, stdout, NULL); dk4fputc('\n', stdout, NULL); #line 42 "test-filei.ctr" } else { #line 43 "test-filei.ctr" } } else { #line 45 "test-filei.ctr" } dk4fputc('\n', stdout, NULL); } #line 49 "test-filei.ctr" #line 50 "test-filei.ctr" return 0; }