diff options
author | David Leonard <d@cvs.openbsd.org> | 2000-01-06 06:53:10 +0000 |
---|---|---|
committer | David Leonard <d@cvs.openbsd.org> | 2000-01-06 06:53:10 +0000 |
commit | 878c9511b686f570b5dbb35bdaf67c31e9f8c5c2 (patch) | |
tree | 431f19b368417703569a9d51bbf8155253d40c63 | |
parent | e8aeea94fac3d7e0e2d0fb1eebcadf49df471ef9 (diff) |
comment. cleanup
-rw-r--r-- | lib/libc_r/TEST/test_cwd.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/lib/libc_r/TEST/test_cwd.c b/lib/libc_r/TEST/test_cwd.c index 9f19d88ab53..90e1ef8bddd 100644 --- a/lib/libc_r/TEST/test_cwd.c +++ b/lib/libc_r/TEST/test_cwd.c @@ -1,3 +1,7 @@ +/* $OpenBSD: test_cwd.c,v 1.3 2000/01/06 06:53:09 d Exp $ */ +/* + * 'Test' getcwd() and getwd() + */ #include <stdio.h> #include <sys/param.h> #include <unistd.h> @@ -6,9 +10,12 @@ int main(int argc, char **argv) { - char wd[MAXPATHLEN], *getcwd(), *getwd(); + char wd[MAXPATHLEN]; + char *path; - printf("getcwd => %s\n", getcwd(wd, MAXPATHLEN)); - printf("getwd => %s\n", getwd(wd)); + ASSERT(path = getcwd(wd, sizeof wd)); + printf("getcwd => %s\n", path); + ASSERT(path = getwd(wd)); + printf("getwd => %s\n", path); SUCCEED; } |