A lot of edit but adding the struct (Yes, i just use parameters of the function util now, See u morrow)
This commit is contained in:
parent
9c4dfafdf7
commit
56655f5426
15 changed files with 403 additions and 30 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/03/28 14:41:15 by rparodi #+# #+# */
|
||||
/* Updated: 2024/03/31 21:04:32 by rparodi ### ########.fr */
|
||||
/* Updated: 2024/04/01 01:51:57 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -27,10 +27,29 @@
|
|||
# include <readline/readline.h>
|
||||
# include <readline/history.h>
|
||||
|
||||
t_i32 main(void);
|
||||
t_i32 ft_strcmp(const char *s1, const char *s2);
|
||||
t_i32 ft_check_type_operators(t_i8 **operators);
|
||||
void ft_exit(t_str str, t_u8 exit_status);
|
||||
t_str *ft_split(t_const_str s, t_i8 c);
|
||||
typedef struct s_utils
|
||||
{
|
||||
t_str name_shell;
|
||||
t_str str_input;
|
||||
t_str *strs_input;
|
||||
t_str *path;
|
||||
t_str *envp;
|
||||
} t_utils;
|
||||
|
||||
t_i32 main(t_i32 argc, t_str argv[], t_str arge[]);
|
||||
void ft_other_cmd(t_utils *shcat, t_usize i);
|
||||
t_i32 ft_strcmp(const char *s1, const char *s2);
|
||||
t_i32 ft_check_type_operators(t_i8 **operators);
|
||||
t_str *ft_split(t_const_str s, t_i8 c);
|
||||
t_str ft_strdup(t_const_str s);
|
||||
void *ft_calloc(t_usize nmemb, t_usize size);
|
||||
size_t ft_strlen(t_const_str s);
|
||||
t_usize ft_strlcpy(t_str dst, t_const_str src, t_usize size);
|
||||
void *ft_memset(void *s, t_i32 c, t_usize n);
|
||||
void ft_bzero(void *s, t_usize n);
|
||||
void ft_free_strs(t_str *strs);
|
||||
void ft_pwd(void);
|
||||
void ft_echo(t_str txt, t_str flag);
|
||||
void ft_exit(t_utils *maiboyerlpb, t_u8 exit_status);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue