title: Cannot return bool from function
body: <p>This is the piece of code in base C: </p>
  
  <pre><code>static bool is_ascii_value_of_digit(char ascii_value){
  
      if((ascii_value&lt;40)&amp;&amp;(ascii_value &gt;= 30)){
          return true;
      }
      return false;
  }
  </code></pre>
  
  <p>The avr studio gcc compiler is giving me error :</p>
  
  <blockquote>
    <p>../calculator.h:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'is_ascii_value_of_digit' </p>
  </blockquote>
  
  <p>Similar errors are also evident in other functions.  I do not know why this is happening. Spent an hour figuring out why and finally gave up.  As far as I have seen online, my syntax is not the problem.  Probably something that I am overlooking.</p>
  
  <p>Question RESOLVED !</p>
  
  <p>Thank you very much for your quick help as it saved me a lot of time.  I was under the assumption that bool is a keyword in c.  </p>