This commit is contained in:
2025-06-03 20:40:56 +02:00
parent f12754da21
commit 4af50e5aa6
3 changed files with 21 additions and 9 deletions
+10 -3
View File
@@ -1,3 +1,6 @@
#include <stdio.h>
#include <string.h>
#ifndef ARGS_H
#define ARGS_H
@@ -5,13 +8,17 @@ struct Parameters {
unsigned long width;
unsigned long height;
char *file_path;
unsigned char start[3];
unsigned char slope[2];
unsigned char var[3];
unsigned int size;
float slope;
float start[3];
float var[3];
};
typedef struct Parameters parameters;
parameters parse_args(int argc, char **argv);
const parameters EMPTY_PARAMS = {
0, 0, NULL, 0, 0.0, {0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}};
#endif