Logo Search packages:      
Sourcecode: dballe version File versions

dba_err dba_record_var_enq ( dba_record  rec,
dba_varcode  code,
dba_var var 
)

Get 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.
Return values:
var A copy of the internal dba_var with the parameter. You need to deallocate it with dba_var_delete().
Returns:
The error indicator for the function (
See also:
dba_err).

Definition at line 498 of file dba_record.c.

References DBA_RUN_OR_RETURN.

{
      dba_var myvar;
      DBA_RUN_OR_RETURN(get_var(rec, code, &myvar));

      /* Return a reference to the variable */
      return dba_var_copy(myvar, var);
}


Generated by  Doxygen 1.6.0   Back to index