🏗️」 wip: Started cd and pwd

This commit is contained in:
2024-06-25 10:38:07 +02:00
parent d9771f26a4
commit 5710f193d7
9 changed files with 146 additions and 19 deletions

21
include/builtins.h Normal file
View File

@ -0,0 +1,21 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* builtins.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/22 13:05:18 by adjoly #+# #+# */
/* Updated: 2024/06/24 12:47:28 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef BUILTINS_H
# define BUILTINS_H
#include "env.h"
void ft_pwd(t_env *env);
void ft_cd(t_env *env, char *args);
#endif

View File

@ -6,7 +6,7 @@
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/29 13:20:22 by mmoussou #+# #+# */
/* Updated: 2024/06/10 17:10:18 by adjoly ### ########.fr */
/* Updated: 2024/06/22 14:07:50 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -99,7 +99,7 @@ void ft_envclear(t_env **lst, void (*del)(void *));
void ft_envdelone(t_env *lst, void (*del)(void *));
t_env *ft_envlast(t_env *env);
t_env *ft_envnew(char *name, char *content);
uint ft_envsize(t_env *lst);
unsigned int ft_envsize(t_env *lst);
/**
* @brief DEBUG FUNC : print the actual state of the env struct