berin(2)

ORIGIN

Cao&Vlsi libraries, BEH package, libBeh106.a

NAME

beh_addberin , beh_delberin , beh_rmvberin , beh_freberin

SYNOPSIS

struct berin *beh_addberin (list, name)
struct berin *list;
char *name;
struct berin *beh_delberin (list, pnt)
struct berin *list;
struct berin *pnt;
struct berin *beh_rmvberin (list, name)
struct berin *list;
char *name;
void beh_freberin (list)
struct berin *list;

PARAMETERS

list
    pointer of a list of berin structures

name
    name of the port or register to be added to or removed from the list

pnt pointer of the berin structure to be removed from the list

DESCRIPTION

A berin is a data structure representing a one-bit port or internal register.

beh_addberin() adds a berin structure at the top of a list of berin structures. The name registred in the berin structure is produced by namealloc(). The function returns the pointer of the new list. No checks are made by this function.

beh_delberin() deletes a berin structure (pointed by pnt) from a list of berin structures. The function returns the pointer of the new list. No action is made if the structure pointed by pnt doesn't belong to the list.

beh_rmvberin() deletes a berin structure (named name) from a list of berin structures. name is supposed to be produced by namealloc(). The function returns the pointer of the new list. No action is made if no structure named name has been found in the list.

beh_freberin() deletes a list of berin structures (pointed by list). No action is made if list is an empty list (NULL pointer). No checks are made by this function.

EXAMPLE

#include <beh106.h>
struct berin *list;
char *name;
name = namealloc ("slave_clock");
list = beh_addberin (list,"master_clock");
list = beh_rmvberin (list,name);

SEE ALSO

beh(2), berin(2), namealloc(2)

BUGS

Please e-mail to cao-vlsi@masi.ibp.fr for bug report and suggestions.