Wild Life: templates.c File Reference

Wild Life 2.29

- Main Page
- Data Structures
- Files

- File List
- Globals

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 }
FEATCMP
#define FEATCMP
Definition: def_const.h:257
wl_psi_term
Definition: def_struct.h:161
wl_node::data
GENERIC data
Definition: def_struct.h:185
TRUE
#define TRUE
Definition: def_const.h:127
FALSE
#define FALSE
Definition: def_const.h:128
find
ptr_node find(long comp, char *keystr, ptr_node tree)
Definition: trees.c:341
wl_node
Definition: def_struct.h:181
wl_psi_term::attr_list
ptr_node attr_list
Definition: def_struct.h:171