Nostalgia.. Touched #C for the first time in ages

#include <stdio.h> #include <stdlib.h> #define MAX_ELEMENTS 4 typedef struct _node { int el; struct _node *next; } node; node *push(node *head, int el) { if (head == NULL) { node *first = malloc(sizeof(struct _node)); first->el = el; first->next = NULL; #ifdef DEBUG printf(“Element [%d] added as head\n”, el); #endif return first; } node *curr = […]