#ifndef list_node_included
#define list_node_included

/****
 *
 * Type ListNode defines an integer-value element of a singly-liked list.
 *
 */

typedef struct ListNodeStruct {

    /** Integer data value of the node. */
    int value;

    /** Pointer to next node in the list. */
    struct ListNodeStruct* next;

} ListNode;

/**
 * Allocate a new node with the given integer value and null next field.
 */
ListNode* newListNode(int value);

#endif