text: /**
   * node.c  2014-05-02 01:32:58
   * anonymouse(anonymouse@email)
   *
   * Copyright (C) 2000-2014 All Right Reserved
   * 
   * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
   * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
   * IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
   * PARTICULAR PURPOSE.
   *
   * Auto generate for Design Patterns in C
   */
  #include <stdlib.h>
  #include <stdio.h>
  #include <string.h>
  
  #include "node.h"
  
  void node_init(struct node *node, int val)
  {
  	memset(node, 0, sizeof(*node));
  	node->val = val;
  	node->prev = node;
  	node->next = node;
  }
  