🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #3415

Re: Getting %1, %2, etc under Borland C

#3415
From: MICHAEL RONN MARCELAIS
Date: Mon, 28 Sep 1992 23:20
32 lines
1575 bytes
In article <1992Sep28.181846.9408@news.iastate.edu>, jws@iastate.edu (James William Shoemaker) writes:
|> 	In MSC 6.0 + SDK I use something like
|> 
|> extern int	__argc; (this may be wrong it may be *__argc)
|> 	this is the count of arguments.
|> 
|> extern char	**__argv[];
|> 	a pointer to an array of pointers to the argument strings.
|> 
|> 	There should be something similar in BC++.
|> 
|> 				JWS
|> 

or just do this (for ANY c/c++)

int main(int argc, char **argv)
{
[...]
}


-- 

+-------------------------------------+------------------------------+
|  Mike Marcelais                     | mrmarcel@eos.ncsu.edu        |
|  356 Tucker, Box 04783, NCSU        | Fourth Bryan Productions     |
|  Raleigh, NC  27607                 | #include <disclaim.h>        |
+-------------------------------------+------------------------------+
| if the above address bounces, then try the address below:          |
| mrmarcel%eos.ncsu.edu@ncsuvx.ncsu.edu                              |
+--------------------------------------------------------------------+
Technical Details
Message-ID: <1992Sep28.232053.25083@ncsu.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!taco!eos.ncsu.edu!mrmarcel
References: <1992Sep28.143744.1@wombat.newcastle.edu.au> <1992Sep28.181846.9408@news.iastate.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!taco!eos.ncsu.edu!mrmarcel
From: mrmarcel@eos.ncsu.edu (MICHAEL RONN MARCELAIS)
Subject: Re: Getting %1, %2, etc under Borland C
Message-ID: <1992Sep28.232053.25083@ncsu.edu>
Sender: news@ncsu.edu (USENET News System)
Organization: North Carolina State University
References: <1992Sep28.143744.1@wombat.newcastle.edu.au> <1992Sep28.181846.9408@news.iastate.edu>
Date: Mon, 28 Sep 1992 23:20:53 GMT
Lines: 32