diff options
Diffstat (limited to 'Tests/OutDir')
-rw-r--r-- | Tests/OutDir/OutDir.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/Tests/OutDir/OutDir.c b/Tests/OutDir/OutDir.c index 53f9259..4f6ae87 100644 --- a/Tests/OutDir/OutDir.c +++ b/Tests/OutDir/OutDir.c @@ -3,22 +3,18 @@ int main(void) { - const char* files[] = {TESTC1_LIB, TESTC2_LIB, CONLY_EXE, 0}; + const char* files[] = { TESTC1_LIB, TESTC2_LIB, CONLY_EXE, 0 }; int result = 0; const char** fname = files; - for(;*fname;++fname) - { + for (; *fname; ++fname) { FILE* f = fopen(*fname, "rb"); - if(f) - { + if (f) { printf("found: [%s]\n", *fname); fclose(f); - } - else - { + } else { printf("error: [%s]\n", *fname); result = 1; - } } + } return result; } |