Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!rutgers!mtune!codas!flmis06!mikel From: mikel@flmis06.ATT.COM (Mikel Manitius) Newsgroups: comp.lang.c Subject: Re: Accessing argc & argv from a functi Message-ID: <39@flmis06.ATT.COM> Date: Mon, 27-Jul-87 17:06:17 EDT Article-I.D.: flmis06.39 Posted: Mon Jul 27 17:06:17 1987 Date-Received: Tue, 28-Jul-87 07:21:06 EDT References: <420@sugar.UUCP> Organization: AT&T, Altamote Springs, FL Lines: 22 > In article <28700015@ccvaxa>, aglew@ccvaxa.UUCP writes: >> In standard C you cannot get access to argv/argc/envp without doing work >> in main(). > > getenv()? putenv()? execl()? execv()? execlp()? execvp()? > -- > -- Peter da Silva Well, I think we may have lost track of the initial problem. Sure, all of the above access the enviorment in one way or another. However I am still looking for a way to get at "argc" and "argv" from a function when I don't have access to "main". getenv() and putenv() gets it from somewhere... As far as the rest of the above mentioned functions, you will need to have the args (or at least create your own) first, before you can pass them on... -- Mikel Manitius @ AT&T Network Operations mikel@codas.att.com.uucp | attmail!mikel