<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=us-ascii">

  <title>RCST7 - C221</title>
  <link rel="stylesheet" type="text/css" href="errors.css">
</head>

<body>
  <h1><a name="RCST7-C221" id="RCST7-C221"></a>RCST7 WARNING C221</h1>
  <!-- Note that the header should be non scrollable, so that it always
     remains on top even if the user scrolls down a loooong text. -->
  <!-- This is the Error title -->

  <h2>BIT(s) not allowed as parameter(s) (char type assumed)</h2>
  <!--Footer Start-->
  <p>You defined a function that takes an argument of type "bit"</p>

  <h2>Example</h2>
  <pre>
#include &lt;stdio.h&gt;

void printbit(bit t)  // Warning C221: bit not allowed as parameter
{
   if(t)
      putchar('1');
   else
      putchar('0');
}
</pre>

  <h2>Resolution</h2>

  <p>This case is automatically handled by the RCST7 Compiler. The
  parameter will have its type changed from "bit" to "char".</p>

  <div class="footer">
    <hr>
    <!--Copyright-->

    <p>&copy; Raisonance S.A.S. 1987-2007. All rights reserved.</p>
  </div><!--Closes the footer div-->
  <!--FOOTER_END-->
</body>
</html>
