Listing 1

/*
 * UTIL.H: Includes and definitions for the CDE/RET
 *           Directory Navigation utilities.
 */


#define MAX_DIRNAME_SIZE 100   /* longest conceivable directory name size  */
#define MAX_EVARNAME_SIZE 20   /* max length of env. var. names created    */
#define DEFAULT_CHAINS "1"     /* initial default dir. stack size          */
#define CHAINS_VAR "CHAINS"    /* name of env. var. controlling stack size */
#define CHAIN_BASE "CHAIN"     /* base name of env. vars holding dir names */
#define HOME_NAME "HOME"       /* Name of 'home dir' environment variable  */

/*
 * Prototypes for utility functions in CDERET.C:
 */

void   error(char *msg);
int    cputs(char *txt);
int    putch(char c);
int    setdrive(int drive_no);
int    getdrive();
void   change_dir(char *newpath);

/*
 * Prototypes for Master Environment Control routines
 * (functions from CUJ 7/89)
 */

char           *m_getenv(char *name);
int            m_putenv(char *name, char *text);
int            m_delenv(char *name);