TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: VICTOR KEMP
from: TIM HUTZLER
date: 1998-01-18 14:17:00
subject: Re: How do you read comm

VK>Well the subject says it all.
VK>Unless the end of it got truncated in which case it said:
VK>"How do you read command line parameters?"
Command line parameters can be read by using the following line:
"int main(int argc, char *argv[])"
*argv is an array of pointers. They point to null terminated strings
that represent the decomposed command line. The strings point to just
past the last white-space on the command line that is the text of the
argument.
Someone posted a short prog to demonstrate its use.
--- Maximus/2 3.01
---------------
* Origin: Madman BBS * Chico, California * 530-893-8079 * (1:119/88)

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™.