feat(parsing/includes): adding the parsing header
This commit is contained in:
parent
07b957ea0e
commit
61f87e1d33
1 changed files with 37 additions and 0 deletions
37
parsing/includes/parsing.h
Normal file
37
parsing/includes/parsing.h
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* parsing.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* 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 <stdbool.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#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);
|
||||
Loading…
Add table
Add a link
Reference in a new issue