saved changes before repartition
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* By: sede-san <sede-san@student.42madrid.com +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/08/01 17:18:21 by sede-san #+# #+# */
|
||||
/* Updated: 2025/08/02 17:55:22 by sede-san ### ########.fr */
|
||||
/* Updated: 2025/08/20 22:22:40 by sede-san ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -16,18 +16,12 @@
|
||||
# include <string.h>
|
||||
# include <stdio.h>
|
||||
|
||||
typedef int (*t_builtin_func)(int argc, char const *argv[]);
|
||||
|
||||
typedef struct s_builtin
|
||||
{
|
||||
const char *name;
|
||||
t_builtin_func function;
|
||||
} t_builtin;
|
||||
|
||||
// cd.c
|
||||
|
||||
int cd_builtin(int argc, char const *argv[]);
|
||||
|
||||
# define CD_HELP
|
||||
|
||||
// echo.c
|
||||
|
||||
typedef struct s_echo_flags
|
||||
@@ -37,24 +31,40 @@ typedef struct s_echo_flags
|
||||
|
||||
int echo_builtin(int argc, char const *argv[]);
|
||||
|
||||
// env.c
|
||||
# define ECHO_HELP
|
||||
|
||||
int env_builtin(int argc, char const *argv[]);
|
||||
// // env.c
|
||||
|
||||
// int env_builtin(int argc, char const *argv[], char **envp);
|
||||
|
||||
// exit.c
|
||||
|
||||
int exit_builtin(int argc, char const *argv[]);
|
||||
|
||||
# define EXIT_HELP
|
||||
|
||||
// export.c
|
||||
|
||||
int export_builtin(int argc, char const *argv[]);
|
||||
int export_builtin(int argc, char const *argv[], char **envp);
|
||||
|
||||
# define EXPORT_HELP
|
||||
|
||||
// printenv.c
|
||||
|
||||
int printenv_builtin(int argc, char const *argv[], char const *envp[]);
|
||||
|
||||
# define PRINTENV_HELP
|
||||
|
||||
// pwd.c
|
||||
|
||||
int pwd_builtin(int argc, char const *argv[]);
|
||||
|
||||
# define PWD_HELP
|
||||
|
||||
// unset.c
|
||||
|
||||
int unset_builtin(int argc, char const *argv[]);
|
||||
int unset_builtin(int argc, char const *argv[], char **envp);
|
||||
|
||||
# define UNSET_HELP
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user