#include "averiles.h" typedef struct List{ struct List *next; int val; }* Liste; Liste insert(Liste entry,int instval){ Liste elem; elem=malloc(sizeof(struct List)); elem->next = entry; entry=elem; elem->val = instval; return elem; } void print(Liste x) { Liste ptr; for (ptr= x; ptr!= NULL; ptr=ptr->next) { printf("%d -> ", ptr->val); } printf("\n"); } int main() { init(); Liste y,z; int value; value=0; y=NULL; while(any){ z=malloc(sizeof(struct List)); z->next=y; z->val=value; value=value+1; y=z; } printf("Original sequence \n"); print(y); z=insert(y,value); printf("insert %d at head \n", value); print(z); }