/* $OpenBSD: test_cwd.c,v 1.3 2000/01/06 06:53:09 d Exp $ */ /* * 'Test' getcwd() and getwd() */ #include #include #include #include "test.h" int main(int argc, char **argv) { char wd[MAXPATHLEN]; char *path; ASSERT(path = getcwd(wd, sizeof wd)); printf("getcwd => %s\n", path); ASSERT(path = getwd(wd)); printf("getwd => %s\n", path); SUCCEED; }