Blame view

tools/sctk-2.4.10/src/sclite/marc1.c 737 Bytes
8dcb6dfcb   Yannick Estève   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
  /* file marc1.c */
  
  
  #include "sctk.h"
  
  ARC *make_arc(void *dat, NODE *from_node, NODE *to_node, int *perr)
                                                     
  /*********************************************************/
  /* Makes an arc <from_node/symbol/to_node>, returning a  */
  /* pointer to it.                                        */
  /*********************************************************/
   {char *proc = "make_arc";
    ARC *p; 
  /* code */
    db_enter_msg(proc,1); /* debug only */
    p = (ARC *)malloc_safe(sizeof(ARC),proc);
    *perr = 0;
    p->data = dat;
    p->weight = 0;
    p->net = NULL_NETWORK;
    p->from_node = from_node;
    p->to_node   = to_node;
    db_leave_msg(proc,1); /* debug only */
    return p;
   } /* end make_arc() */