New Reply

need help about c++

 
Share Thread Thread Tools
May28-12, 10:58 AM   #1
 

need help about c++


In a c language, what is the maximum combined length of command line arguments
including the space between adjacent arguments.?
PhysOrg.com
PhysOrg
science news on PhysOrg.com

>> Galaxies fed by funnels of fuel
>> The better to see you with: Scientists build record-setting metamaterial flat lens
>> Google eyes emerging markets networks
May28-12, 11:01 AM   #2
 
Recognitions:
Gold Membership Gold Member
I don't think command line argument restrictions have anything to do with what code an app is written in, it's an O.S. characteristic and is likely to vary among Windows / MAC OS / UNIX.

I think, years ago, there was a DOS and early-windows restriction of 256 characters but I don't know that that still holds in windows.
May28-12, 11:34 AM   #3
 
i cannot understand
May28-12, 12:20 PM   #4

Math 2012
 
Recognitions:
Science Advisor Science Advisor

need help about c++


The limit depends on the operating system and the command shell you are using, not on the C language.

On Windows XP, Vista, and Windows 7 it is 8191 characters.
On some Unix systems it is much bigger, with limits like 65536 or even 262144 characters.

Look for the constant ARG_MAX in your C ibrary header files.
New Reply
Thread Tools