getlomodel(3) - Linux man page
Name
getlomodel - 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
Description
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.
Example
#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;
- }
See Also
mbk(1), lofig(3), addlomodel(3), freelomodel(3), dellomodel(3).