Article View: net.micro.pc
Article #8544Re: Argv[0] in TURBO PASCAL
From: Dave Klotzbach
Date: Mon, 27 Oct 1986 15:08
Date: Mon, 27 Oct 1986 15:08
12 lines
1106 bytes
1106 bytes
> DON'T say none, Lattice C on the PC gives argv[0] as the program name
> Gene Lee UUCP: ...ihnp4!{meccts,dayton,rosevax}!ems!A60!lee
> Sperry Corporation ATT: (612) 635-6334
*** REPLACE THIS LINE WITH YOUR MESSAGE ***
Lattice C cheated and put the name of the compiled program with main() in
it in a location that would then be used to replace argv[0]. It did not get
the information from MSDOS. This is clearly stated in the manual, See
section 4.1.4 under the description for args:
"A dummy argv[0] is therefore supplied ...."
Technical Details
Message-ID:
<1644@ihuxy.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rutgers!clyde!cbatt!ihnp4!ihuxy!klotzReferences:
<623@A60.UUCP> <2444@gitpyr.gatech.EDU> <1637@ihuxy.UUCP> <631@A60.UUCP>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rutgers!clyde!cbatt!ihnp4!ihuxy!klotz From: klotz@ihuxy.UUCP (Dave Klotzbach) Newsgroups: net.micro.pc Subject: Re: Argv[0] in TURBO PASCAL Message-ID: <1644@ihuxy.UUCP> Date: Mon, 27-Oct-86 10:08:25 EST Article-I.D.: ihuxy.1644 Posted: Mon Oct 27 10:08:25 1986 Date-Received: Mon, 27-Oct-86 23:30:38 EST References: <623@A60.UUCP> <2444@gitpyr.gatech.EDU> <1637@ihuxy.UUCP> <631@A60.UUCP> Organization: AT&T Bell Labs, Naperville, IL Lines: 12