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