Logo Search packages:      
Sourcecode: dballe version File versions

dba_var dba_record_var_peek ( dba_record  rec,
dba_varcode  code 
)

Look at the value of a parameter, as dba_var.

Parameters:
rec The record to get the value from.
code The variable to get the value for.
Returns:
A const pointer to the internal variable, or NULL if the variable has not been found.

Definition at line 445 of file dba_record.c.

{
      assert_is_dba_record(rec);

      dba_item i;
      for (i = rec->vars; i != NULL; i = i->next)
            if (dba_var_code(i->var) == code)
                  return i->var;
      return NULL;
}


Generated by  Doxygen 1.6.0   Back to index