18 lines
286 B
C
18 lines
286 B
C
#pragma once
|
|
|
|
#include <help.h>
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
typedef struct {
|
|
bool opts[OPT_NB];
|
|
char *arg[OPT_NB];
|
|
} args_t;
|
|
|
|
/**
|
|
* @brief Can be used to parse the command line options
|
|
* @param av The argv of the program
|
|
*/
|
|
int opt_parse(char **av, args_t *args);
|