I have a problem when I try to allocate some memory for my structrure.
At compilation I get:"Operands of = have incompatible types 'struct hash_t * [100]' and 'struct hash_t *'." " Lvalue required".Code:#define BUFSIZE 100 typedef struct hash_t{ char *buffer[50]; unsigned int *t_index; }HASH_T; HASH_T *phtable[BUFSIZE]; if ((phtable = ((struct hash_t *) malloc(sizeof (struct hash_t)*100))) == NULL) printf("Allocation error");
Thank you