EDataBook.BookCache.cursor_compare_contact

### Method

# EDataBook BookCachecursor_compare_contact

since: 3.26

#### Declaration [src]

    gint
    e_book_cache_cursor_compare_contact (
      EBookCache* book_cache,
      EBookCacheCursor* cursor,
      EContact* contact,
      gboolean* out_matches_sexp
    )

#### Description [src]

Compares `contact` with `cursor` and returns whether `contact` is less than, equal to, or greater than `cursor`.

Available since: 3.26

#### Parameters

`cursor`

  Type: `EBookCacheCursor`

  The `EBookCacheCursor`.

  The data is owned by the caller of the method.

`contact`

  Type: `EContact`

  The `EContact` to compare.

  The data is owned by the caller of the method.

`out_matches_sexp`

  Type: `gboolean*`

  Whether the contact matches the cursor’s search expression.

  The argument will be set by the function.
  The argument can be set to `NULL` by the method.

#### Return value

Type: `gint`

A value that is less than, equal to, or greater than zero if `contact` is found, respectively, to be less than, to match, or be greater than the current value of `cursor`.