Vista previa del material en texto
//Codifica las funciones de lista simple que vimos en clase. /* - Crear - Insertar al inicio - Insertar al final - Insertar antes de un nodo Realiza la funcion de insertar despues de un nodo.*/ typedef int element; typedef struct Node{ element e; struct Node *next; }; typedef struct List { struct Node *head; struct Node *tail; }; void createL(List *l); void InsertAtFirst(List *l, element e); void InsertAtEnd(List *l, element e); void InsertBeforeNode(List *l, element e, Node *act); void InsertAfterNode(List *l, element e, Node *act); #include "Lista.c"