1 2 3 4 5 6 7 8 9 10 11 12 13
#include <libft.h> #include <stddef.h> #include <unistd.h> int ft_pwd(void) { char *buff; buff = NULL; ft_putendl(getcwd(buff, 1000)); return (0); }