core/com.nokia.carbide.cpp.compiler.doc.user/html/c_behavior/c_be_arguments.htm
author Deepak Modgil <Deepak.Modgil@Nokia.com>
Fri, 03 Apr 2009 23:33:03 +0100
changeset 0 fb279309251b
child 1641 2b3996fc09a1
permissions -rw-r--r--
DP tools release version Revision: 200912

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="LASTUPDATED" content="06/17/05 11:09:43" />
<title>Arguments to main()</title>
<link rel="StyleSheet" href="../../book.css" type="text/css"/>
</head>
<body bgcolor="#FFFFFF">
<h3>Arguments to main()</h3>
<p>  The <span class="code">main()</span> function can accept two or more arguments (ISO C, &sect;5.1.2.2.1) of the form:</p>
<p class="listing">int main(int argc, char *argv[]) { /*...*/ }</p>
<p>The values stored in the <span class="code">argc</span> and <span class="code">argv</span> arguments depend on Carbide C&rsquo;s target platform. </p>
<div id="footer">Copyright &copy; 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. <br>License: <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a></div>
</body>
</html>