home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / apple2 / gno / 340 < prev    next >
Encoding:
Text File  |  1992-11-17  |  861 b   |  28 lines

  1. Newsgroups: comp.sys.apple2.gno
  2. Path: sparky!uunet!destroyer!cs.ubc.ca!newsserver.sfu.ca!akostur
  3. From: akostur@fraser.sfu.ca (Andre John Kostur)
  4. Subject: Re: Reading shell variables from a program.
  5. Message-ID: <1992Nov17.020526.3144@sfu.ca>
  6. Sender: news@sfu.ca
  7. Organization: Simon Fraser University, Burnaby, B.C., Canada
  8. References: <1e8tnnINN3bf@charnel.ecst.csuchico.edu>
  9. Date: Tue, 17 Nov 1992 02:05:26 GMT
  10. Lines: 16
  11.  
  12. In article <1e8tnnINN3bf@charnel.ecst.csuchico.edu> jamesb@ecst.csuchico.edu (James L. Brookes) writes:
  13. >I looked through the documentation at hand (as well as several manpages on
  14. >the unix box here) but I couldn't figure out how to read a shell variable
  15. >from within a program.  
  16.  
  17. Try the function :
  18.  
  19. char *getenv(char *);
  20.  
  21.  
  22.       ^ 
  23.      ' ` 
  24.   **'   `**         Andre Kostur
  25.  ***  _  ***
  26.   *''***``*         akostur@sfu.ca 
  27.    `     ' 
  28.