2 /* ###--------------------------------------------------------------### */
4 /* file : beh_frebebux.c */
5 /* date : Sep 3 1993 */
7 /* authors : Pirouz BAZARGAN SABET */
8 /* content : low-level function */
10 /* ###--------------------------------------------------------------### */
17 /* ###--------------------------------------------------------------### */
18 /* function : beh_frebebux */
19 /* description : delete a list of BEBUX structures and all objects */
20 /* pointed by any os BEBUXs in the list */
21 /* called func. : mbkfree */
22 /* ###--------------------------------------------------------------### */
24 void beh_frebebux (listbebux
)
26 struct bebux
*listbebux
; /* list of bebux to be deleted */
29 struct bebux
*ptbebux
;
31 /* ###------------------------------------------------------### */
32 /* for each object of the list, first delete pointed objects */
33 /* then, delete the object itself */
34 /* ###------------------------------------------------------### */
36 while (listbebux
!= NULL
)
38 beh_frebiabl (listbebux
->BIABL
);
39 beh_frebinode (listbebux
->BINODE
);
42 listbebux
= listbebux
->NEXT
;