/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_args.h :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: bgoulard +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/01/13 23:42:28 by bgoulard #+# #+# */ /* Updated: 2024/06/24 00:01:59 by bgoulard ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef FT_ARGS_H # define FT_ARGS_H /* ************************************************************************** */ /* */ /* Module: FT_ARGS */ /* Prefix: ft_arg */ /* */ /* The Module FT_ARGS provides an easy way to handle task related to the cli */ /* arguments both for manipulation and parsing. */ /* */ /* ************************************************************************** */ // Change version with -DVERSION="x.y.z-W" via Makefile # ifndef VERSION # define VERSION "1.0.0" # endif # include "ft_defs.h" # include # include "ft_args_types.h" /* @file: src/ft_args/ft_arg_custom_checker.c */ void ft_arg_set_custom_checker(t_data_is custom_checker); t_data_is ft_arg_get_custom_checker(void); /* @file: src/ft_args/ft_setup_prog.c */ void ft_setup_prog(const char *const *av); /// @file: src/ft_args/ft_parse_args int ft_parse_args(const char **argv, void *usr_control_struct); void ft_set_opt_list(const t_opt *opt_list); const t_opt *ft_get_opt_list(void); void ft_set_progname(const char *program_name); const char *ft_progname(void); void ft_set_version(const char *version); const char *ft_progversion(void); #endif