4.3BSD/usr/ingres/source/monitor/newdirec.c

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

# include	"monitor.h"
# include	<ingres.h>
# include	<aux.h>
# include	<sccs.h>

SCCSID(@(#)newdirec.c	8.1	12/31/84)



/*
**  CHANGE WORKING DIRECTORY
*/

newdirec()
{
	register char	*direc;
	extern char	*getfilenm();

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