/* File: stringitem.h

   Class for string data stored in a ListNode
*/

#ifndef _stringitem_h
#define _stringitem_h

typedef char * data ;

class ListItem {
public:
   data item ;

   ListItem() ;		/* default constructor */
   ListItem(data) ;	/* alternate constructor */ 
   ~ListItem() ;	/* destructor */
   data copy() ;	/* make a copy */
   int compare(data) ;	/* <0 is smaller, =0 is equal, >0 is bigger */
   void print() ;	/* print to stdout */
} ;

#endif
