I'm trying to allocate some memory using MACROS. But I get this errors:
error: expected expression before ‘)’ token
error: expected statement before ‘)’ token
This is my code:
#define ALLOC(p,n) (p*)malloc(sizeof(p)*n)
int main(){
char *ponteiro;
ponteiro=ALLOC(5,ponteiro);
return 0;
}