请大家帮我看一下用c语言实现数据结构构造一个空的链表!!
#include<stdio.h>#include<stdlib.h>
typedef struct pointer
{ char data;
struct pointer *next;
} pointer,*node;
void initlist(node *head);
main()
{
node *head1;
initlist(head1);
node *head2;
initlist(head2);
int n;
scanf("%d",&n);
}
void initlist(node *head)
{
(*head)=(node)malloc(sizeof(struct pointer));
(*head)->next=NULL;
}