diff options
| author | Miguel <m.i@gmx.at> | 2018-10-15 16:29:50 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-10-15 16:29:50 +0200 |
| commit | e3a8099343aac9d94f411638ad84632d4b620132 (patch) | |
| tree | f0a1f73ab106c17b25fd8a5264a66b6b48e55e48 /userspace/pwd.c | |
| parent | f35d2124c36f8d39a953b76620e081b79c2faffd (diff) | |
cleanup sys/ etc
Diffstat (limited to 'userspace/pwd.c')
| -rw-r--r-- | userspace/pwd.c | 9 |
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)); +} |
