Google
 

Trailing-Edge - PDP-10 Archives - SRI_NIC_PERM_FS_1_19910112 - kcc-6/lib/test/tgetwd.c
There are 2 other files named tgetwd.c in the archive. Click here to see a list.
#include <sys/param.h>
extern char *getwd();
main()
{
    char *ret;
    char buf[MAXPATHLEN];

    buf[0] = 0;
    ret = getwd(buf);
    if (ret) printf("getwd won: \"%s\"\n", ret);
    else printf("getwd failed: \"%s\"\n", buf);
}