getlosig.3alc man page

getlosig — retrieve a logical signal

Synopsis

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

Parameters

ptfig

Pointer to the figure in which the signal should be seeked

index

Index of the signal

Description

getlosig looks in the list of signals of the logical model pointed to by ptfig for a signal identified by its index. This signal is unique, since the index is the signal identifier.

Return Value

getlosig returns a pointer to the signal that matches the index.

Errors

"∗∗∗ mbk error ∗∗∗ illegal getlosig signal index doesn't exist in figure ptfig->NAME"

No signal has index as INDEX in the figure.

Example

#include "mlo.h"
losig_list ∗get_sig_by_name(figname, index)
char ∗figname;
long index;
{
   return getlosig(getlofig(figname), index);
}

See Also

mbk(1), lofig(3), losig(3), addlosig(3), dellosig(3).

Referenced By

addlosig.3alc(3), dellosig.3alc(3), losig.3alc(3).

October 1, 1997 ASIM/LIP6 MBK LOGICAL FUNCTIONS