2.11BSD/ingres/source/monitor/newdirec.c

Compare this file to the similar file:
Show the results in this format:

# include	<stdio.h>

# include	"../ingres.h"
# include	"../aux.h"
# include	"monitor.h"

/*
**  CHANGE WORKING DIRECTORY
*/

newdirec()
{
	register char	*direc;
	char		*getfilename();

	direc = getfilename();
	if (chdir(direc))
		printf("Cannot access directory \"%s\"\n", direc);
}