---
name: "ggidev-eq_3"
section: "3"
platform: "linux"
package: "libggi2-dev"
version: "1:2.2.2-5"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/ggidev-eq_3"
---

# ggidev-eq\_3(3)

triple-int comparisons

## NAME

**ggidev-eq\_3**, **ggidev-ge\_3** - triple-int comparisons

## SYNOPSIS

```
#include <ggi/internal/triple-int.h>
int eq_3(unsigned l[3], unsigned r[3]);
int ge_3(unsigned l[3], unsigned r[3]);
```

## DESCRIPTION

**eq\_3** tests if **l** and **r** are equal. Equivalent to l==r.

**ge\_3** tests if **l** is greater than or equal to **l**. Equivalent to l\>=r.

## RETURN VALUE

**eq\_3** and **ge\_3** returns non-zero if the relation is true, and zero otherwise.

## EXAMPLES

Some **triple-int** comparisons:

```
unsigned x[3], y[3], z[3];
assign_int_3(x, 5);
assign_int_3(y, 6);
assign_int_3(z, 6);
ASSERT(!eq_3(x, y));
ASSERT(eq_3(y, z));
ASSERT(ge_3(x, y));
ASSERT(ge_3(y, z));
ASSERT(!ge_3(y, x));
```

## SEE ALSO

`ggidev-triple-int(7)`, `ggidev-assign_int_3(3)`
