gra-projekt/Implementierung/src/main.c

24 lines
564 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) {
struct configuration c;
enum argumentParseResult result = parseArguments(argc, argv, &c);
switch (result)
{
case RESULT_EXIT_SUCCESS:
return EXIT_SUCCESS;
case RESULT_EXIT_FAILURE:
return EXIT_FAILURE;
default:
break;
}
printf("Hashing file: %s\nUsing implementation: %d, doing benchmark: %d, benchmark cycles: %d\n", c.filename, c.implementationToUse, c.doBenchmark, c.benchmarkingCycles);
return 0;
}