Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old August 18th, 2005, 10:15 PM
Mark
Guest
 
Posts: n/a
Default fairly basic question on command options

can anyone confirm whether or not C++ places any restrictions on the length
of
command option strings passed into main upon startup. The standard ( section
3.6) does'nt seem to mention any, but I thought I'd better confirm.

My guess is that , if there are any, it might be implementation or OS/shell
defined.



Mark


  #2  
Old August 18th, 2005, 10:55 PM
Victor Bazarov
Guest
 
Posts: n/a
Default Re: fairly basic question on command options

Mark wrote:[color=blue]
> can anyone confirm whether or not C++ places any restrictions on the length
> of
> command option strings passed into main upon startup. The standard ( section
> 3.6) does'nt seem to mention any, but I thought I'd better confirm.[/color]

If you got the Standard document, you got all the help you need. We'd be
using the same document to "confirm".
[color=blue]
> My guess is that , if there are any, it might be implementation or OS/shell
> defined.[/color]

That's correct. Any limits of that sort are OS-driven, most likely, and
since your implementation has to live in the confines of your OS, the same
limits can be interpreted as implementation-defined.

V
  #3  
Old August 18th, 2005, 11:05 PM
Moritz Beller
Guest
 
Posts: n/a
Default Re: fairly basic question on command options

On Thu, 18 Aug 2005 21:11:15 +0000 (UTC)
"Mark" <mswinson@REMOVETHISBITbtinternet.com> wrote:
[color=blue]
> My guess is that , if there are any, it might be implementation or
> OS/shell defined.[/color]

As an example of an implementation, using the gcc compiler suite,
configure checks up on this.

best regards / Gruß
Moritz Beller
--
web http://www.4momo.de
mail momo dot beller at t-online dot de
gpgkey http://gpg.notlong.com
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles