added bgoulard lib + made lib sources in their own directory in build/ for readability
This commit is contained in:
parent
83cc8419a0
commit
0a390934d6
457 changed files with 21807 additions and 61 deletions
54
libft_personal/include/ft_args.h
Normal file
54
libft_personal/include/ft_args.h
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_args.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: bgoulard <bgoulard@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* 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 <sys/types.h>
|
||||
# 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue