【发布时间】:2018-07-18 07:43:34
【问题描述】:
我不知道如何解决这个错误。我不能分配相同的类型。继续在='中接收'(严格)不兼容的指针
#define POOLSZ 53
typedef struct{
int eventnr;
int eventfq;
struct olnode *next;
}olnode;
olnode pool[POOLSZ];
olnode *avail
void initpool()
{
int i;
for(i = 0; i < POOLSZ-1; i++)
pool[i].next = &pool[i+1]; /*This is the error line */
pool[i].next = NULL;
avail = pool;
}
【问题讨论】:
标签: c error-handling