#include <stdio.h>
#include <malloc.h>
typedef struct Linklist{
int value;
struct Linklist* next;
}Linknode, Linklist;
void insert(Linklist *L, int x){
Linknode *p;
p = (Linknode *)malloc(sizeof(Linknode *));
if(p == NULL){
printf("Memory allocation failed!");
}
p->value = x;
p->next = L->next;
L->next = p;
}
int main () {
Linklist *L;
L->value = 0;
L->next = NULL;
for(int i=1;i<6;++i){
insert(L,i);
}
printf("%d\n",L->next->value);
Linklist *p=L->next;
printf("ok");/*
while(p!=NULL){
p = p->next;
printf("%d\n",p->value);
}*/
return 0;
}