getlomodel(3)

getlomodel3

Retrieve a model from a lofig_list

Synopsys

#include "mut.h"
lofig_list ∗getlomodel(model, name)
lofig_list ∗model;
char ∗name;

Parameters

model

Pointer to a lofig list

name

String indicating the model to be looked for

Overview

getlomodel seeks a lofig element in the list pointed to by model.

Return value

getlomodel returns a pointer to the lofig that match the name. If no lofig has the given name, then NULL is returned.

Examples

#include "mlo.h"
locon_list *get_model_cons(model, name)
lofig_list ∗model;
char ∗name;
{
lofig_list ∗p = getlomodel(model, name);
	return p ? p->LOCON : NULL;
}	

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.