|
|
BSD 4.3
/* $Header: /var/lib/cvsd/repos/CSRG/43BSD/contrib/mkmf/src/getcwp.c,v 1.1.1.1 2018/04/24 16:12:54 root Exp $ */
/*
* Author: Peter J. Nicklin
*/
/*
* getcwp() returns the pathname of the current working project. If the
* PROJECT environment variable is undefined or a null string, null is
* returned.
*/
#include "null.h"
char *
getcwp()
{
extern char *_PROJECT; /* project root directory pathname */
void getproject(); /* get PROJECT environment variable */
if (_PROJECT == NULL)
getproject();
return(_PROJECT);
}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.