-
Notifications
You must be signed in to change notification settings - Fork 0
/
utilities.h
32 lines (27 loc) · 1.18 KB
/
utilities.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef SRC_UTILITIES_H_INCLUDED
#define SRC_UTILITIES_H_INCLUDED
#include "./structs.h"
/**
* @brief Retrieves and processes the main arguments of the application.
*
* This function takes the command-line arguments passed to the application,
* processes them, and stores the relevant information in a structure. It
* ensures that the arguments are correctly parsed and validated.
*
* @param pMainArguments Pointer to a `TMainArguments` structure where the
* processed arguments will be stored.
* @param argc Number of command-line arguments.
* @param argv Array with the command-line arguments.
*/
void getMainArguments(TMainArguments* pMainArguments, const int argc, char* argv[]);
/**
* @brief Sets the default values for the main arguments of the application.
*
* This function initializes the provided structure with default values.
* It ensures that all necessary fields are set to their initial states.
*
* @param pMainArguments Pointer to a `TMainArguments` structure that will be initialized
* with default values.
*/
void setDefaultMainArguments(TMainArguments* pMainArguments);
#endif // SRC_UTILITIES_H_INCLUDED