home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume8 / graph+ / part03 / tabnode.c < prev    next >
Encoding:
C/C++ Source or Header  |  1987-03-01  |  524 b   |  32 lines

  1. /*
  2.  * Copyright (C) 1986   Alan Kent
  3.  *
  4.  * Permission is granted to freely distribute part or
  5.  * all of this code as long as it is not for profit
  6.  * and this message is retained in the code.
  7.  *
  8.  * No resposibility is taken for any damage or incorect
  9.  * results this program generates.
  10.  * 
  11.  */
  12.  
  13.  
  14. #include <stdio.h>
  15. #include "graph.h"
  16.  
  17.  
  18.  
  19. extern char *new ();
  20.  
  21.  
  22. tnode_st *
  23. tab_node ( operator )
  24. int operator;
  25. {
  26.     tnode_st *p;
  27.  
  28.     p = (tnode_st *) new ( sizeof ( tnode_st ) );
  29.     p->operator = operator;
  30.     return ( p );
  31. }
  32.