gra-projekt/Implementierung/lib/helper.h

25 lines
454 B
C
Raw Normal View History

2022-06-29 10:58:49 +02:00
#ifndef HELPER_H
#define HELPER_H
#include <errno.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <getopt.h>
enum argumentParseResult {
RESULT_OK = 0,
RESULT_EXIT_SUCCESS,
RESULT_EXIT_FAILURE
};
struct configuration {
char* filename;
int implementationToUse;
int doBenchmark;
int benchmarkingCycles;
};
2022-06-29 10:58:49 +02:00
enum argumentParseResult parseArguments(int argc, char** argv, struct configuration* c);
#endif // HELPER_H