summaryrefslogtreecommitdiffstats
path: root/src/ft_pwd.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r5p6.le-101.fr>2019-10-29 13:22:04 +0100
committerRudy Bousset <rbousset@z2r5p6.le-101.fr>2019-10-29 13:22:04 +0100
commit079d839aee68e52932eacbd8d4c75ba1388b006a (patch)
tree406665acdbfa9e61fbccad924d4dcc27de0463e1 /src/ft_pwd.c
parentlibft included (diff)
download42-minishell-079d839aee68e52932eacbd8d4c75ba1388b006a.tar.gz
42-minishell-079d839aee68e52932eacbd8d4c75ba1388b006a.tar.bz2
42-minishell-079d839aee68e52932eacbd8d4c75ba1388b006a.tar.xz
42-minishell-079d839aee68e52932eacbd8d4c75ba1388b006a.tar.zst
42-minishell-079d839aee68e52932eacbd8d4c75ba1388b006a.zip
tons of changes
Diffstat (limited to '')
-rw-r--r--src/ft_pwd.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/ft_pwd.c b/src/ft_pwd.c
new file mode 100644
index 0000000..24394fe
--- /dev/null
+++ b/src/ft_pwd.c
@@ -0,0 +1,13 @@
+#include <libft.h>
+#include <stddef.h>
+#include <unistd.h>
+
+int
+ft_pwd(void)
+{
+ char *buff;
+
+ buff = NULL;
+ ft_putstr(getcwd(buff, 1000));
+ return (0);
+}