restodir X savedir X
refdir X
1: char refdir[50]; 2: savedir() 3: { 4: if (refdir[0]==0) 5: corout ("", refdir, "/bin/pwd", "", 50); 6: trimnl(refdir); 7: } 8: restodir() 9: { 10: chdir(refdir); 11: }