aboutsummaryrefslogtreecommitdiff
path: root/pwd.c
diff options
context:
space:
mode:
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);
+}
+