diff options
Diffstat (limited to 'mit-pthreads/tests/test_cwd.c')
-rw-r--r-- | mit-pthreads/tests/test_cwd.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mit-pthreads/tests/test_cwd.c b/mit-pthreads/tests/test_cwd.c new file mode 100644 index 00000000000..979c173d5fc --- /dev/null +++ b/mit-pthreads/tests/test_cwd.c @@ -0,0 +1,11 @@ +#include <stdio.h> + +main(int argc, char **argv) +{ + char wd[1024], *getcwd(), *getwd(); + + pthread_init(); + printf("getcwd => %s\n", getcwd(wd, 1024)); + printf("getwd => %s\n", getwd(wd)); + exit(0); +} |