summaryrefslogtreecommitdiff
path: root/userspace/pwd.c
blob: 3bc300258f07aeeeaee74ccc9c20b4558854a610 (plain)
1
2
3
4
5
6
7
8
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));
}