2 /* ###--------------------------------------------------------------### */
4 /* file : beh_addbegen.c */
5 /* date : Sep 3 1993 */
7 /* authors : Pirouz BAZARGAN SABET */
8 /* content : low-level function */
10 /* ###--------------------------------------------------------------### */
17 /* ###--------------------------------------------------------------### */
18 /* function : beh_addbegen */
19 /* description : create a BEGEN structure at the top the list */
20 /* called func. : namealloc, mbkalloc */
21 /* ###--------------------------------------------------------------### */
23 struct begen
*beh_addbegen (lastbegen
, name
, type
, value
)
25 struct begen
*lastbegen
; /* pointer on the last begen structure */
26 char *name
; /* generic's name */
27 char *type
; /* generic's type mark */
28 void *value
; /* generic's value */
34 name
= namealloc (name
);
35 type
= namealloc (type
);
37 ptgen
= (struct begen
*) mbkalloc (sizeof(struct begen
));
41 ptgen
->NEXT
= lastbegen
;