xref: /original-bsd/old/refer/refer/glue2.c (revision a95f03a8)
1 /*-
2  * %sccs.include.proprietary.c%
3  */
4 
5 #ifndef lint
6 static char sccsid[] = "@(#)glue2.c	4.3 (Berkeley) 04/18/91";
7 #endif /* not lint */
8 
9 #include "pathnames.h"
10 char refdir[50];
11 
12 savedir()
13 {
14 	if (refdir[0]==0)
15 		corout ("", refdir, _PATH_PWD, "", 50);
16 	trimnl(refdir);
17 }
18 
19 restodir()
20 {
21 	chdir(refdir);
22 }
23