home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.apple2.gno
- Path: sparky!uunet!destroyer!ncar!csn!teal!bazyar
- From: bazyar@teal.csn.org (Jawaid Bazyar)
- Subject: Re: Reading shell variables from a program.
- Message-ID: <bazyar.721961935@teal>
- Sender: news@csn.org (news)
- Nntp-Posting-Host: teal.csn.org
- Organization: Colorado SuperNet, Inc.
- References: <1e8tnnINN3bf@charnel.ecst.csuchico.edu>
- Date: Tue, 17 Nov 1992 00:58:55 GMT
- Lines: 27
-
- jamesb@ecst.csuchico.edu (James L. Brookes) writes:
-
- >I looked through the documentation at hand (as well as several manpages on
- >the unix box here) but I couldn't figure out how to read a shell variable
- >from within a program.
-
- >Any help here?
-
- GETENV(3V) C LIBRARY FUNCTIONS GETENV(3V)
-
-
-
- NAME
- getenv - return value for environment name
-
- SYNOPSIS
- #include <stdlib.h>
-
- char *getenv(name)
- char *name;
-
-
- --
- Jawaid Bazyar | Ask me about the GNO Multitasking Environment
- Procyon, Inc. | for the Apple IIgs!
- bazyar@cs.uiuc.edu | P.O Box 620334
- --Apple II Forever!-- | Littleton, CO 80162-0334 (303) 933-4649
-