/* Definition of a List Node */

/* utilize an ifndef/define mechanism, so nodes will be defined exactly once */
#ifndef __NODE_H__
#define __NODE_H__

/* Maximum length of names */
#define MAXSTRLEN   127

/* Stringify a literal without macro expansion */
#define STR(EXPR) #EXPR

/* Construct a size-limited scanf format string for a character buffer */
#define SCANSTR(LEN) "%" STR(LEN) "s"


typedef struct node node_t;

struct node
{ char data[MAXSTRLEN+1];
  node_t* next;
};

#endif
