Logo Search packages:      
Sourcecode: ldb version File versions  Download package

struct ldb_val* ldb_msg_find_val ( const struct ldb_message_element el,
struct ldb_val val 
) [read]

find a value within an ldb_message_element

el the element to search
val the value to search for
This search is case sensitive

Definition at line 81 of file ldb_msg.c.

References ldb_message_element::num_values, and ldb_message_element::values.

      unsigned int i;
      for (i=0;i<el->num_values;i++) {
            if (ldb_val_equal_exact(val, &el->values[i])) {
                  return &el->values[i];
      return NULL;

Generated by  Doxygen 1.6.0   Back to index