TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: VICTOR KEMP
from: ALEX ZAVALIN
date: 1998-01-08 00:24:00
subject: How do you read command line parameters?00:24:0901/08/98

You're welcome, Victor !
 VK> "How do you read command line parameters?"
#...
main (int argc, char *argv[])
{
 printf("\n%d parameters, first is %s \n", argc, argv[1])
}
argc is a number of arguments including prog name, i.e. you're
executing "prog.exe /C nc.exe"
argc == 3
argv[0] == "prog.exe"
argv[1] == "/C"
argv[2] == "nc.exe"
Sincerely yours,
Aleksey
--- BUG TERMINATOR model 3.00.Beta1+
---------------
* Origin: Haumbambayahumbambaheyahumbambayahe (2:467/66.33)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.