|
Zappy - Year end project 2
This is a project that Epitech asked us to create in order to allow us to reveiw the notions of the current year.
|


Go to the source code of this file.
Data Structures | |
| struct | arg_s |
| struct | option_s |
| struct | option_list_s |
Functions | |
| int | get_nb_mandatory_option (const struct option_list_s *opt_list) |
| Get the number of mandatory options needed for the server. | |
| int | check_mandatory_set (int ac, const char **av, int nb_param, const struct option_list_s *opt_list) |
| Check if there's every mandatory options in the arguments passed to the program. | |
| int | is_param (const char *str, const struct option_list_s *opt_list) |
| Check if a string is a parameter. | |
| int | get_nb_parameter (int ac, const char **av) |
| Get the number of parameter passed to the program. | |
| int | get_arg_value (int ac, const char **av, const struct option_s *param, struct arg_s **arg) |
| Get the variables of a parameter and store it in arg_s structure. | |
| struct arg_s ** | get_zappy_args (int ac, const char **av, const struct option_list_s *opt_l) |
| The principal function to get every arguments. | |
| int | check_values_validity (const struct arg_s **arguments, const size_t size) |
| Check if the values of the parameters are correct. | |
| int check_mandatory_set | ( | int | ac, |
| const char ** | av, | ||
| int | nb_param, | ||
| const struct option_list_s * | opt_list ) |
Check if there's every mandatory options in the arguments passed to the program.
| ac | Number of arguments |
| av | Variables passed as parameter to the program |
| nb_param | Number of parameter |
| opt_list | The constant defined with every known command |
Definition at line 54 of file check_arg_mandatory.c.
| int check_values_validity | ( | const struct arg_s ** | arguments, |
| const size_t | size ) |
Check if the values of the parameters are correct.
| arguments | The structure where parameters and parameters value are stored |
| size | The size of the structure |
Definition at line 106 of file check_values_validity.c.
Get the variables of a parameter and store it in arg_s structure.
| ac | Number of arguments |
| av | Variables passed as parameter to the program |
| param | A intermediaire structure (option_s) before store it in arg_s structure |
| arg | The structure where parameters and parameters value are stored |
Definition at line 50 of file arg_parse.c.
| int get_nb_mandatory_option | ( | const struct option_list_s * | opt_list | ) |
Get the number of mandatory options needed for the server.
| opt_list | The constant defined with every known command |
Definition at line 14 of file check_arg_mandatory.c.
| int get_nb_parameter | ( | int | ac, |
| const char ** | av ) |
Get the number of parameter passed to the program.
| ac | Number of arguments |
| av | Variables passed as parameter to the program |
Definition at line 38 of file parameter_utils.c.
| struct arg_s ** get_zappy_args | ( | int | ac, |
| const char ** | av, | ||
| const struct option_list_s * | opt_l ) |
The principal function to get every arguments.
| ac | Number of arguments |
| av | Variables passed as parameter to the program |
| param | A intermediaire structure (option_s) before store it in arg_s structure |
Definition at line 89 of file arg_parse.c.
| int is_param | ( | const char * | str, |
| const struct option_list_s * | opt_list ) |
Check if a string is a parameter.
| str | The string to check |
| opt_list | The constant defined with every known command |
Definition at line 12 of file parameter_utils.c.