using bool in c (within a structure)
<p>I wanted to use a boolean variable in c as a flag,within a structure,but c does not have any keyword "bool" to make it possible.
I got some relevant information here :  <a href="https://stackoverflow.com/questions/1921539/using-boolean-values-in-c">Using boolean values in C</a>
<strong>then basically,I tried this</strong></p>

<pre><code>struct bookshop
{
    char name[20];
    char issuer[20];
    int id;
    typedef enum { false, true } flag;

};
</code></pre>

<p><strong>to get the following error,on this line:"typedef enum { false, true } flag";</strong>
Multiple markers at this line
    - expected specifier-qualifier-list before 
     ‘typedef’
    - Type 'flag' could not be resolved
    - Syntax error</p>

<p>please help!
and thanks in advance :)</p>