I was trying to build my project but I got this error I really don't understand the problem I've tried to define the variable this way:
char*c=malloc(100);
and even this way:
char c;
Thanx
I was trying to build my project but I got this error I really don't understand the problem I've tried to define the variable this way:
char*c=malloc(100);
and even this way:
char c;
Thanx
Declaring variables in the middle of a function is a C99 feature. Your compiler may not support C99, or you may have to activate it with a switch. Move the declaration to the top of the function.