Warning initialization makes integer from pointer without a cast with fgets : <p>I want want to read a character string, over the stdin, so I have chosen fgets. But I got this warning: initialization makes integer from pointer without a cast.</p>

<p>Here is my code:</p>

<pre><code>#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;string.h&gt;
#include &lt;stddef.h&gt;

#define MAX_LINIA 301

int main(int argc,char *argv[]){
    char *buffer;
    printf("Enter the input\n");
    if (fgets(buffer,MAX_LINIA-1,stdin)==NULL) printf("Error")
    else printf("%s", buffer);
    return 0:
}
</code></pre>
