1
0
mirror of https://github.com/KeyZox71/ft_minipowershell.git synced 2025-05-14 08:18:45 +02:00

」 feat: CD finished need valgrind fix but it's fine

This commit is contained in:
2024-06-25 16:31:55 +02:00
parent db8435b6c2
commit e7a5e8041b
2 changed files with 17 additions and 9 deletions

View File

@ -6,16 +6,18 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/25 10:41:43 by adjoly #+# #+# */
/* Updated: 2024/06/25 10:44:01 by adjoly ### ########.fr */
/* Updated: 2024/06/25 15:05:04 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
#include "builtins.h"
#include "libft.h"
#include <unistd.h>
char *ret_cwd(void)
{
char buf[PATH_MAX_LEN];
ft_bzero(buf, PATH_MAX_LEN);
return (getcwd(buf, PATH_MAX_LEN));
}