[✨] feat: parsing working but free does not
This commit is contained in:
26
include/parsing.h
Normal file
26
include/parsing.h
Normal file
@ -0,0 +1,26 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* parsing.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/03/28 16:54:40 by adjoly #+# #+# */
|
||||
/* Updated: 2024/03/29 10:41:40 by adjoly ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef PARSING_H
|
||||
# define PARSING_H
|
||||
|
||||
typedef struct s_pcmd
|
||||
{
|
||||
char *cmd;
|
||||
char **option;
|
||||
} t_pcmd;
|
||||
|
||||
void ft_freearr(char **arr);
|
||||
t_pcmd split_cmd(char *cmd_av);
|
||||
t_pcmd *parse_cmd(int ac, char **av);
|
||||
|
||||
#endif
|
21
include/pipex.h
Normal file
21
include/pipex.h
Normal file
@ -0,0 +1,21 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* pipex.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/03/22 21:14:06 by adjoly #+# #+# */
|
||||
/* Updated: 2024/03/22 21:16:23 by adjoly ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef PIPEX_H
|
||||
# define PIPEX_H
|
||||
|
||||
typedef struct t_pipex
|
||||
{
|
||||
|
||||
} s_pipex;
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user