givelosig(3)

givelosig3

Give a logical signal

Synopsys

#include "mlo.h"
losig_list ∗givelosig(ptfig, index)
lofig_list ∗ptfig;
long index;

Parameters

ptfig

Pointer to the figure in which the signal should be seeked or created

index

Index of the signal to find or create

Overview

givelosig looks in the list of signals of the logical model pointed to by ptfig for a signal identified by its index. If this signal exists, then its pointer is returned, else, the signal is created, with direction, DIR, UNKNOWN, and TYPE INTERNAL, and, of course INDEX index, and the pointer is returned.

Return value

givelosig returns a pointer to the signal.

Examples

#include "mlo.h"
losig_list ∗give_sig_by_name(figname, index)
char ∗figname;
long index;
{
   /∗ never fails ∗/
   return givelosig(getlofig(figname), index);
}

Releases

4 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–8
  2. 9–10

From alliance 5.1.1-3 in Debian 10 (Buster). Parsed by carta from the page's man source.