Logo Search packages:      
Sourcecode: dballe version File versions

dba_err dba_record_contains_key ( dba_record  rec,
dba_keyword  parameter,
int *  found 

Check if a keyword is set

rec The record to get the value from.
parameter The key to check.
Return values:
found true if the record contains a value for the parameter, else false.
The error indicator for the function (
See also:

Definition at line 468 of file dba_record.c.

References dba_error_notfound.


      if (parameter < 0 || parameter >= DBA_KEY_COUNT)
            return dba_error_notfound("looking for informations about parameter #%d", parameter);

      *found = (rec->keydata[parameter] != NULL);

      return dba_error_ok();

Generated by  Doxygen 1.6.0   Back to index