新人求问,链表生成问题 总是
为什么我写的链表生成函数,生成后访问时总是出现段错误?代码如下

void Create_Store(int numberof,struct struction * allbeginning) //numberof 为需要单位个数,allbeginning 为预留的链表开头 { int timer=1; struct struction * arralla=(struct struction *)malloc(sizeof(struct struction)); allbeginning=arralla; while(timer<numberof) { arralla->arrnext=(struct struction *)malloc(sizeof(struct struction)); (arralla->arrnext)->arrlast=arralla; arralla=arralla->arrnext; timer++; } }