|
|
researchv9-SUN3(old)
/*
* Print working (current) directory
*/
#include <stdio.h>
char *getwd();
main()
{
char pathname[512];
if (getwd(pathname) == NULL) {
fprintf(stderr, "pwd: %s\n", pathname);
exit(1);
}
printf("%s\n", pathname);
exit(0);
}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.