home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_08_11 / 8n11031b < prev    next >
Text File  |  1990-09-18  |  334b  |  21 lines

  1.  
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4.  
  5. main()
  6. {
  7.     char *pc;
  8.  
  9.     if (putenv("test=1234") == -1)
  10.         printf("cannot define string\n");
  11.     else {
  12.         printf("string definition added\n");
  13.         pc = getenv("test");
  14.         printf("string defined as >%s<\n", pc);
  15.         system("see");
  16.     }
  17. }
  18. string definition added
  19. string defined as >1234<
  20.  
  21.