Wild Life  2.29
 All Data Structures Files Functions Variables Typedefs Macros
Functions
templates.c File Reference

Go to the source code of this file.

Functions

long get_arg (ptr_psi_term g, ptr_psi_term *arg, char *number)
 

Function Documentation

long get_arg ( ptr_psi_term  g,
ptr_psi_term arg,
char *  number 
)

Definition at line 20 of file templates.c.

References wl_node::data, FALSE, FEATCMP, find(), and TRUE.

24 {
25  ptr_node n;
26 
27 
28  if ((n = find (FEATCMP, number, g->attr_list)))
29  return (*arg = (ptr_psi_term) n->data) ? TRUE: FALSE;
30  else
31  return FALSE;
32 }
#define FEATCMP
Definition: def_const.h:257
GENERIC data
Definition: def_struct.h:185
#define TRUE
Definition: def_const.h:127
#define FALSE
Definition: def_const.h:128
ptr_node find(long comp, char *keystr, ptr_node tree)
Definition: trees.c:341
ptr_node attr_list
Definition: def_struct.h:171