ggidev-assign_3(3)

ggidev-assign_33

Initialize a triple-int

Usage

#include <ggi/internal/triple-int.h>
unsigned *assign_3(unsigned l[3], unsigned r[3]);
unsigned *assign_int_3(unsigned l[3], int r);
unsigned *assign_unsigned_3(unsigned l[3], unsigned r);

Overview

assign_3 assigns the value of one existing triple-int r to another triple-int l.

assign_int_3 and assign_unsigned_3 assigns the argument r to the least significant position of the triple-int l. assign_int_3 extends the sign, while assign_unsigned_3 does not.

Return value

assign_3, assign_int_3 and assign_unsigned_3 all return a pointer to the freshly assigned triple-int x.

Examples

Assign some values to triple-ints:

unsigned x[3], y[3], z[3];
assign_int_3(x, -42);
assign_unsigned_3(y, 17);
assign_3(z, x);

Releases

3 releases since Debian 4.0 (Etch); the text changed 1 time.

  1. 4.0
  2. 5.0–6.0

From libggi2-dev 1:2.2.2-5 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.