Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!columbia!rutgers!caip!clyde!cbatt!ihnp4!ihuxy!klotz From: klotz@ihuxy.UUCP (Dave Klotzbach) Newsgroups: net.micro.pc Subject: Re: Argv[0] in TURBO PASCAL Message-ID: <1637@ihuxy.UUCP> Date: Wed, 22-Oct-86 11:47:32 EDT Article-I.D.: ihuxy.1637 Posted: Wed Oct 22 11:47:32 1986 Date-Received: Thu, 23-Oct-86 04:44:31 EDT References: <623@A60.UUCP> <2444@gitpyr.gatech.EDU> Organization: AT&T Bell Labs, Naperville, IL Lines: 19 > Turbo Pascal does not support equivalent procedures to the argv() > and argc() functions found in most C (and in some Pascal) libraries. > This is not true. Earlier version of TURBO did not have this facility, but with TURBO version 3.0 and later have supported these through the function argcnt and the array argstr[].. Argcnt is the number of arguments on the command line and argstr is the equiv. of *argv[]. Since I do not have my handbook with me I may have the names of the function and array wrong but I have used both off these in my development. > The book mentions that this is only good for getting arguments above > arg(0), which doesn't really solve your specific problem, but I hope > it is of some general use.` The problem with arg(0) is an MSDOS problem. None of the language processors for MSDOS can supply you with tthe name your program was invokked with. This is a limimitation in the way the PSP is constructed. This information, of course, is based on MSDOS 2.1.