Logo Search packages:      
Sourcecode: dballe version File versions

dba_var dba_record_key_peek ( dba_record  rec,
dba_keyword  parameter 
)

Look at the value of a parameter, as dba_var.

Parameters:
rec The record to get the value from.
parameter The parameter 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 436 of file dba_record.c.

{
      assert_is_dba_record(rec);

      if (parameter < 0 || parameter >= DBA_KEY_COUNT)
            return NULL;
      return rec->keydata[parameter];
}


Generated by  Doxygen 1.6.0   Back to index