// node.h   A simple linked list node   P. Conrad for CISC220, 06J

#ifndef NODE_H
#define NODE_H

struct Node_S 
{
  int data;
  Node_S *next;
};


// function prototypes

void printList(const Node_S *const head);
void insertIntoList(Node_S ** headPtr, Node_S **tailPtr);
void insertIntoList_v2(Node_S * & head, Node_S * &tail);

void insertIntoSortedList(Node_S ** headPtr, Node_S **tailPtr);
void insertIntoSortedList_v2(Node_S * & head, Node_S * &tail);


#endif
