summaryrefslogtreecommitdiff
path: root/userspace/pwd.c
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-10-15 16:29:50 +0200
committerMiguel <m.i@gmx.at>2018-10-15 16:29:50 +0200
commite3a8099343aac9d94f411638ad84632d4b620132 (patch)
treef0a1f73ab106c17b25fd8a5264a66b6b48e55e48 /userspace/pwd.c
parentf35d2124c36f8d39a953b76620e081b79c2faffd (diff)
cleanup sys/ etc
Diffstat (limited to 'userspace/pwd.c')
-rw-r--r--userspace/pwd.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/userspace/pwd.c b/userspace/pwd.c
new file mode 100644
index 0000000..3bc3002
--- /dev/null
+++ b/userspace/pwd.c
@@ -0,0 +1,9 @@
+#include <stdio.h>
+
+int main()
+{
+ char buf[256];
+ printf("current pwd=%s\n",getwd(buf));
+ chdir("/usr/share");
+ printf("changed pwd=%s\n",getwd(buf));
+}