/* CSE 333 Su12 Lecture 6 demo: manual_list.c */
/* Gribble/Perkins */

/* Simple linked list demo */

#include <stdio.h>

typedef struct Node {         // Linked list node:
  int element;                //   Data in this node
  struct Node *next;          //   Ptr to next node or NULL if none
} Node;

// Declare two nodes and link them together
int main(int argc, char **argv) {
  Node n1, n2;

  n1.element = 1;
  n1.next = &n2;
  n2.element = 2;
  n2.next = NULL;
  return 0;
}