home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_08_02 / 8n02114a < prev    next >
Text File  |  1990-03-01  |  983b  |  35 lines

  1. *****Listing 1*****
  2.  
  3. /*
  4.  * UTIL.H: Includes and definitions for the CDE/RET 
  5.  *             Directory Navigation utilities.
  6.  */
  7.  
  8.  
  9. #define    MAX_DIRNAME_SIZE 100    /* longest conceivable directory name size    */
  10. #define MAX_EVARNAME_SIZE 20    /* max length of env. var. names created    */
  11. #define DEFAULT_CHAINS "1"        /* initial default dir. stack size            */
  12. #define CHAINS_VAR "CHAINS"        /* name of env. var. controlling stack size */
  13. #define CHAIN_BASE "CHAIN"        /* base name of env. vars holding dir names */
  14. #define HOME_NAME "HOME"        /* Name of 'home dir' environment variable    */
  15.  
  16. /*
  17.  *    Prototypes for utility functions in CDERET.C:
  18.  */
  19.  
  20. void    error(char *msg);
  21. int        cputs(char *txt);
  22. int        putch(char c);
  23. int        setdrive(int drive_no);
  24. int        getdrive();
  25. void    change_dir(char *newpath);
  26.  
  27. /*
  28.  *    Prototypes for Master Environment Control routines 
  29.  *    (functions from CUJ 7/89)
  30.  */
  31.  
  32. char    *m_getenv(char *name);
  33. int        m_putenv(char *name, char *text);
  34. int        m_delenv(char *name);
  35.