home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / sos3-2.lha / src / sos / sos.c next >
Encoding:
C/C++ Source or Header  |  1992-01-23  |  849 b   |  27 lines

  1. /* --------------------------------------------------------------------------
  2.  * Copyright 1992 by Forschungszentrum Informatik (FZI)
  3.  *
  4.  * You can use and distribute this software under the terms of the licence
  5.  * you should have received along with this program.
  6.  * If not or if you want additional information, write to
  7.  * Forschungszentrum Informatik, "STONE", Haid-und-Neu-Strasse 10-14,
  8.  * D-7500 Karlsruhe 1, Germany.
  9.  * --------------------------------------------------------------------------
  10.  */
  11. #include "sys.h"
  12. #include "sos.h"
  13. #include "cci_use.h"
  14.  
  15. const char *ENVVAR_NAME = "SOSTMPDIR";
  16. const char *DEFAULT_DIR = ".";
  17.  
  18. const char *sos_tempdir = DEFAULT_DIR;
  19.  
  20. void sos_init (int, char *argv[])
  21. {  sos_tempdir = getenv (ENVVAR_NAME);
  22.    sos_tempdir = (sos_tempdir) ? strdup (sos_tempdir)
  23.                    : DEFAULT_DIR;
  24.  
  25.    cci_init (argv);
  26. }
  27.