aboutsummaryrefslogtreecommitdiff
path: root/pwd.c
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-03-17 23:33:56 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-03-17 23:33:56 +1300
commitcff2863f6b986490c5868bb177918666432c9f4c (patch)
tree779a9b12410883feee57b42cc287692893473808 /pwd.c
parentFree memory in ls(1) too (diff)
downloadtunics-cff2863f6b986490c5868bb177918666432c9f4c.tar.gz
tunics-cff2863f6b986490c5868bb177918666432c9f4c.zip
Quick and utterly wrong pwd(1) implementation
Diffstat (limited to 'pwd.c')
-rw-r--r--pwd.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/pwd.c b/pwd.c
new file mode 100644
index 0000000..8416ed4
--- /dev/null
+++ b/pwd.c
@@ -0,0 +1,9 @@
+#include "pwd.h"
+
+int main(void)
+{
+ char buf[1024];
+ fprintf(stdout, "%s\n", getcwd(buf, 1024));
+ exit(EXIT_SUCCESS);
+}
+