renamed functions to improve readability and removed useless test files

This commit is contained in:
mdev9
2024-02-13 16:29:25 +01:00
parent 99e229192d
commit 6ee8507cae
15 changed files with 97 additions and 33097 deletions

25
pwd.c Executable file
View File

@ -0,0 +1,25 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* pwd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/02/09 18:31:21 by tomoron #+# #+# */
/* Updated: 2024/02/13 16:18:01 by marde-vr ### ########.fr */
/* */
/* ************************************************************************** */
#include "minishell.h"
int pwd(void)
{
char *buffer;
buffer = malloc(1024 * 1024);
if (!buffer)
return (1);
getcwd(buffer, 1024 * 1024);
ft_printf("%s\n", buffer);
free(buffer);
return (0);
}