wip args
This commit is contained in:
+10
-3
@@ -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
|
||||
Reference in New Issue
Block a user