1: # include "monitor.h" 2: # include <ingres.h> 3: # include <aux.h> 4: # include <sccs.h> 5: 6: SCCSID(@(#)newdirec.c 8.1 12/31/84) 7: 8: 9: 10: /* 11: ** CHANGE WORKING DIRECTORY 12: */ 13: 14: newdirec() 15: { 16: register char *direc; 17: extern char *getfilenm(); 18: 19: direc = getfilenm(); 20: if (chdir(direc)) 21: printf("Cannot access directory \"%s\"\n", direc); 22: }