Connecting Tech Pros Worldwide Help | Site Map

fairly basic question on command options

  #1  
Old August 18th, 2005, 10:15 PM
Mark
Guest
 
Posts: n/a
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

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

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
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
comp.lang.c Answers to Frequently Asked Questions (FAQ List) Steve Summit answers 5 November 14th, 2005 12:36 PM
comp.lang.c Answers to Frequently Asked Questions (FAQ List) Steve Summit answers 0 November 14th, 2005 04:15 AM
comp.lang.c Answers to Frequently Asked Questions (FAQ List) Steve Summit answers 0 November 13th, 2005 11:37 PM
comp.lang.c Answers to Frequently Asked Questions (FAQ List) Steve Summit answers 0 November 13th, 2005 09:56 PM
comp.lang.c Answers to Frequently Asked Questions (FAQ List) Steve Summit answers 0 November 13th, 2005 03:15 AM