From 61f87e1d33b7931d7bca23b1c1ce94d83a1d5aa7 Mon Sep 17 00:00:00 2001 From: Raphael Date: Sat, 28 Mar 2026 14:58:40 +0100 Subject: [PATCH] feat(parsing/includes): adding the parsing header --- parsing/includes/parsing.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 parsing/includes/parsing.h diff --git a/parsing/includes/parsing.h b/parsing/includes/parsing.h new file mode 100644 index 0000000..ae5148d --- /dev/null +++ b/parsing/includes/parsing.h @@ -0,0 +1,37 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* parsing.h :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: rparodi +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2026/03/23 14:49:37 by rparodi #+# #+# */ +/* Updated: 2026/03/28 12:45:03 by rparodi ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#pragma once +#include "struct.h" +#include +#include + +#ifdef BONUS +# define BONUS 1 +#endif +#ifndef BONUS +# define BONUS 0 +#endif + +typedef struct s_args { + char short_option; + char *long_option; + char *usage; + char *description; + bool is_mandatory; +} t_args; + +extern const t_args _flags[]; + +size_t args_size(); +void print_help(); +uint64_t check_num_arguments(char *arg);