gra-projekt/Implementierung/src/main.c

25 lines
558 B
C
Raw Normal View History

#include "helper.h"
2022-06-29 10:58:49 +02:00
#include "io.h"
#include "md2.h"
int main(int argc, char** argv) {
2022-06-29 11:12:35 +02:00
struct configuration c;
enum argumentParseResult result = parseArguments(argc, argv, &c);
2022-06-29 11:12:35 +02:00
switch (result) {
case RESULT_EXIT_SUCCESS:
2022-06-29 11:12:35 +02:00
return EXIT_SUCCESS;
case RESULT_EXIT_FAILURE:
2022-06-29 11:12:35 +02:00
return EXIT_FAILURE;
default:
2022-06-29 11:12:35 +02:00
break;
}
2022-06-29 11:12:35 +02:00
printf(
"Hashing file: %s\nUsing implementation: %d, doing benchmark: %d, "
"benchmark cycles: %d\n",
c.filename, c.implementationToUse, c.doBenchmark, c.benchmarkingCycles);
2022-06-29 11:12:35 +02:00
return 0;
}