home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 1 / RISC_DISC_1.iso / pd_share / code / unixlib / !UnixLib / test / c / envtest < prev    next >
Encoding:
Text File  |  1994-03-08  |  260 b   |  17 lines

  1. #include <stdlib.h>
  2. #include <stdio.h>
  3.  
  4. #include "unistd.h"
  5.  
  6. int
  7. main ()
  8. {
  9.   puts (getenv ("UnixFS$/tmp"));
  10.   puts (getenv ("UnixFS$/tmp"));
  11.   puts (getenv ("TMP"));
  12.   putenv ("TMP=Hello World");
  13.   puts (getenv ("TMP"));
  14.   puts (getenv ("TMP"));
  15.   return 0;
  16. }
  17.