core/com.nokia.carbide.cpp.compiler.doc.user/html/c_compiler/c_zero_length_arrays.htm
changeset 0 fb279309251b
child 1641 2b3996fc09a1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/core/com.nokia.carbide.cpp.compiler.doc.user/html/c_compiler/c_zero_length_arrays.htm	Fri Apr 03 23:33:03 2009 +0100
@@ -0,0 +1,24 @@
+<!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>Arrays of Zero Length in Structures</title>
+<link rel="StyleSheet" href="../../book.css" type="text/css"/>
+</head>
+<body bgcolor="#FFFFFF">
+<h3>Arrays of Zero Length in Structures</h3>
+<p>  If you disable the <a href="../pragmas/p_ANSI_strict.htm">ANSI Strict</a> setting , the compiler lets you specify an array of no length as the last item in a structure. Listing 1 shows an example. You can define arrays with zero as the index value or with no index value.</p>
+<div class="listing">
+  <h5>Listing 1. Using Zero-length Arrays</h5>
+  <p>struct listOfLongs {<br />
+    long listCount;<br />
+    long list[0]; // OK if ANSI Strict is disabled, [] is OK, too.<br />
+    }<br />
+    </p>
+</div>
+<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>