Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!mcvax!mhres!jv From: jv@mhres.mh.nl (Johan Vromans) Newsgroups: comp.lang.c Subject: Re: Accessing argc & argv from a functi Message-ID: <1159@mhres.mh.nl> Date: Fri, 31-Jul-87 10:17:41 EDT Article-I.D.: mhres.1159 Posted: Fri Jul 31 10:17:41 1987 Date-Received: Sat, 1-Aug-87 22:29:51 EDT References: <420@sugar.UUCP> <39@flmis06.ATT.COM> <382@root44.co.uk> Organization: Multihouse NV, the Netherlands Lines: 23 Summary: getopt looses In article <382@root44.co.uk>, njh@root.co.uk (Nigel Horne) writes: > In article <39@flmis06.ATT.COM> mikel@flmis06.ATT.COM (Mikel Manitius) writes: > > > >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... > > getopt(). > You loose: getopt (argc, argv, optstring) int argc; char *argv[]; char *optstring; See: SVID. -- Johan Vromans | jv@mh.nl via mcvax and seismo Multihouse N.V., Gouda, the Netherlands | uucp: ..{seismo!}mcvax!mh.nl!jv "It is better to light a candle than to curse the darkness"